protected override Expression VisitVariableDeclaration(SqlVariableDeclarationExpression expression)
        {
            SqlVariableDeclarationExpression current;
            if (!TryGetCurrent(expression, out current))
            {
                return expression;
            }

            if (!(this.result &= object.Equals(current.Name, expression.Name)))
            {
                return expression;
            }

            if (!(this.result &= current.NodeType == expression.NodeType))
            {
                return expression;
            }

            if (!(this.result &= current.Type == expression.Type))
            {
                return expression;
            }

            this.currentObject = current;
            return expression;
        }
Ejemplo n.º 2
0
 protected override Expression VisitVariableDeclaration(SqlVariableDeclarationExpression expression)
 {
     this.hashCode ^= expression.Name?.GetHashCode() ?? 0;
     return(base.VisitVariableDeclaration(expression));
 }
 protected override Expression VisitVariableDeclaration(SqlVariableDeclarationExpression expression)
 {
     this.hashCode ^= expression.Name?.GetHashCode() ?? 0;
     return base.VisitVariableDeclaration(expression);
 }
Ejemplo n.º 4
0
		protected virtual Expression VisitVariableDeclaration(SqlVariableDeclarationExpression expression)
		{
			return expression;
		}
Ejemplo n.º 5
0
		protected override Expression VisitVariableDeclaration(SqlVariableDeclarationExpression expression)
		{
			this.Write(this.ParameterIndicatorPrefix);
			this.Write(expression.Name);
			this.Write(" ");
			this.WriteTypeName(this.sqlDataTypeProvider.GetSqlDataType(expression.Type).GetSqlName(null));
			
			return base.VisitVariableDeclaration(expression);
		}