Inheritance: SqlBaseExpression
Exemple #1
0
 protected override Expression VisitPragma(SqlPragmaExpression expression)
 {
     this.hashCode ^= expression.Directive?.GetHashCode() ?? 0;
     return(base.VisitPragma(expression));
 }
 protected override Expression VisitPragma(SqlPragmaExpression expression)
 {
     this.hashCode ^= expression.Directive?.GetHashCode() ?? 0;
     return base.VisitPragma(expression);
 }
        protected override Expression VisitPragma(SqlPragmaExpression expression)
        {
            SqlPragmaExpression current;
            if (!TryGetCurrent(expression, out current))
            {
                return expression;
            }

            if (!(this.result &= object.Equals(current.Directive, expression.Directive)))
            {
                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;
        }
        protected override Expression VisitPragma(SqlPragmaExpression expression)
        {
            this.Write("PRAGMA ");
            this.Write(expression.Directive);
            this.WriteLine(";");

            return base.VisitPragma(expression);
        }
		protected virtual Expression VisitPragma(SqlPragmaExpression expression)
		{
			return expression;
		}
 protected virtual Expression VisitPragma(SqlPragmaExpression expression)
 {
     return(expression);
 }