/// <summary>
 /// 实例化 <see cref="SqlServerMapperCommand"/> 类的新实例
 /// </summary>
 /// <param name="context">数据查询提供者</param>
 /// <param name="aliases">别名</param>
 /// <param name="token">解析上下文参数</param>
 public SqlServerMapperCommand(SqlServerDbContext context, TableAliasCache aliases, ResolveToken token)
     : base(context.Provider, aliases, token)
 {
     _aliases  = aliases;
     _context  = context;
     _provider = context.Provider as SqlServerDbQueryProvider;
 }
Exemplo n.º 2
0
 /// <summary>
 /// 初始化 <see cref="SqlServerJoinExpressionVisitor"/> 类的新实例
 /// </summary>
 internal SqlServerJoinExpressionVisitor(SqlClient.SqlServerDbContext context, TableAlias aliases, List <DbExpression> joins)
     : base(context.Provider, aliases, joins)
 {
     _joins    = joins;
     _aliases  = aliases;
     _context  = context;
     _provider = context.Provider as SqlClient.SqlServerDbQueryProvider;
 }