Beispiel #1
0
        public override void ReplaceWith(SqlExpression expression)
        {
            ArgumentValidator.EnsureArgumentNotNull(expression, "expression");
            ArgumentValidator.EnsureArgumentIs <SqlVariable>(expression, "expression");
            SqlVariable replacingExpression = expression as SqlVariable;

            name = replacingExpression.Name;
        }
Beispiel #2
0
        internal override object Clone(SqlNodeCloneContext context)
        {
            if (context.NodeMapping.ContainsKey(this))
            {
                return(context.NodeMapping[this]);
            }

            SqlVariable clone = new SqlVariable(name, type);

            context.NodeMapping[this] = clone;
            return(clone);
        }
Beispiel #3
0
 internal SqlDeclareVariable(SqlVariable variable)
     : base(SqlNodeType.DeclareVariable)
 {
     this.variable = variable;
 }