Z.Expressions.SqlServer.Eval.SQLNET.Code C# (CSharp) Method

Code() public method

Set the code or expression to evaluate.
public Code ( string code ) : SQLNET
code string The code or expression to evaluate.
return SQLNET
        public SQLNET Code(string code)
        {
            if (code.Contains("defaultCommand") && !code.Contains("new SqlConnection("))
            {
                code = TemplateConnection.Replace("[SQLNET_Code]", code);
            }

            if (code != Item.Code)
            {
                Item.Delegate = null;
                Item.Code = code;
            }

            return this;
        }
SQLNET