Example #1
0
 /// <summary>
 /// 创建 SqlExecuteContext 对象
 /// </summary>
 /// <param name="transaction">数据库事务</param>
 /// <param name="reader">数据读取器</param>
 /// <param name="tracing">用于记录此次查询过程的的查询追踪器</param>
 internal SqlDbExecuteContext(SqlDbTransactionContext transaction, SqlDataReader reader, IDbTracing tracing)
     : base(reader, tracing, null)
 {
     SqlDataReader = reader;
 }
 public SqlDbExecutorWithTransaction(SqlDbTransactionContext transaction, SqlDbConfiguration configuration)
     : base(transaction.Connection.ConnectionString, configuration)
 {
     TransactionContext = transaction;
 }