Beispiel #1
0
 /// <summary>
 /// 实例化 <see cref="MethodCallExressionVisitor"/> 类的新实例
 /// </summary>
 public MethodCallExressionVisitor(IDbQueryProvider provider, ExpressionVisitorBase visitor)
 {
     _provider    = provider;
     _visitor     = visitor;
     _builder     = visitor.SqlBuilder;
     _visitedMark = _visitor.VisitedMark;
 }
Beispiel #2
0
 /// <summary>
 /// 实例化 <see cref="MethodCallExpressionVisitor"/> 类的新实例
 /// </summary>
 public MethodCallExpressionVisitor(IDbQueryProvider provider, ExpressionVisitorBase visitor)
 {
     _provider       = provider;
     _visitor        = visitor;
     _builder        = visitor.SqlBuilder;
     _visitedMark    = _visitor.VisitedMark;
     this.NotMethods = new HashSet <MethodCallExpression>();
 }
Beispiel #3
0
 /// <summary>
 /// 实例化 <see cref="MethodCallExpressionVisitor"/> 类的新实例
 /// </summary>
 /// <param name="provider">查询语义提供者</param>
 /// <param name="visitor">表达式访问器</param>
 public MethodCallExpressionVisitor(IDbQueryProvider provider, ExpressionVisitorBase visitor)
 {
     _provider     = provider;
     _visitor      = visitor;
     _builder      = visitor.SqlBuilder;
     _visitedStack = _visitor.VisitedStack;
     _dbValue      = _provider.DbValue;
 }
Beispiel #4
0
 /// <summary>
 /// 创建方法表达式访问器
 /// </summary>
 /// <returns></returns>
 public abstract MethodCallExpressionVisitor CreateMethodVisitor(ExpressionVisitorBase visitor);