コード例 #1
0
ファイル: DbBatch.cs プロジェクト: terrydash/XgxFrameWork
        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="batchcmd"></param>
        /// <param name="cmdCreator"></param>
        public DbBatch(CommandCreator cmdCreator, BatchCommander batchcmd)
        {
            Check.Require(cmdCreator, "cmdCreator", Check.NotNull);
            Check.Require(batchcmd, "batchcmd", Check.NotNull);

            this.cmdCreator = cmdCreator;

            this.batchcmd = batchcmd;
        }
コード例 #2
0
        /// <summary>
        /// Begins the batch connection.
        /// </summary>
        /// <param name="batchSize">Size of the batch.</param>
        /// <param name="il">The il.</param>
        public void BeginBatchConnection(int batchSize, IsolationLevel il)
        {
            batchConnection = CreateConnection(true);

            batchCommander = new BatchCommander(this, batchSize, il);
        }
コード例 #3
0
        /// <summary>
        /// Begins the batch connection.
        /// </summary>
        /// <param name="batchSize">Size of the batch.</param>
        /// <param name="tran">The tran.</param>
        public void BeginBatchConnection(int batchSize, DbTransaction tran)
        {
            batchConnection = CreateConnection(true);

            batchCommander = new BatchCommander(this, batchSize, tran);
        }
コード例 #4
0
ファイル: Database.cs プロジェクト: luchigster/Dos.ORM
 /// <summary>
 /// Ends the batch connection.
 /// </summary>
 public void EndBatchConnection()
 {
     batchCommander.Close();
     CloseConnection(batchConnection);
     batchConnection = null;
     batchCommander = null;
 }
コード例 #5
0
ファイル: Database.cs プロジェクト: luchigster/Dos.ORM
        /// <summary>
        /// Begins the batch connection.
        /// </summary>
        /// <param name="batchSize">Size of the batch.</param>
        /// <param name="il">The il.</param>
        public void BeginBatchConnection(int batchSize, IsolationLevel il)
        {
            batchConnection = CreateConnection(true);

            batchCommander = new BatchCommander(this, batchSize, il);
        }
コード例 #6
0
ファイル: Database.cs プロジェクト: luchigster/Dos.ORM
        /// <summary>
        /// Begins the batch connection.
        /// </summary>
        /// <param name="batchSize">Size of the batch.</param>
        /// <param name="tran">The tran.</param>
        public void BeginBatchConnection(int batchSize, DbTransaction tran)
        {
            batchConnection = CreateConnection(true);

            batchCommander = new BatchCommander(this, batchSize, tran);
        }