Example #1
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;
 }
Example #2
0
 /// <summary>
 /// 实例化 <see cref="SqlBuilder"/> 类的新实例
 /// </summary>
 /// <param name="provider">查询语义提供者</param>
 /// <param name="token">解析上下文参数</param>
 public SqlBuilder(IDbQueryProvider provider, ResolveToken token)
 {
     _provider     = provider;
     _dbValue      = provider.DbValue;
     _token        = token;
     _innerBuilder = new StringBuilder(128);
     _escCharLeft  = _provider.QuotePrefix;
     _escCharRight = _provider.QuoteSuffix;
     _escCharQuote = _provider.SingleQuoteChar;
 }