Example #1
0
 /// <summary>
 /// 创建 MySqlExecuteContext 对象
 /// </summary>
 /// <param name="transaction">MySql 数据库事务上下文</param>
 /// <param name="dataReader">MySql 数据读取器</param>
 /// <param name="tracing">用于当前查询的追踪器</param>
 public MySqlExecuteContext(MySqlDbTransaction transaction, MySqlDataReader dataReader, IDbTracing tracing)
     : base(dataReader, tracing)
 {
     TransactionContext = transaction;
     MySqlDataReader    = dataReader;
 }
Example #2
0
 public MySqlDbExecutorWithTransaction(MySqlDbTransaction transaction) : base(transaction.Database)
 {
     Transaction = transaction;
 }