コード例 #1
0
ファイル: Database.cs プロジェクト: zhlf1987/DotnetFramework
        /// <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);
        }
コード例 #2
0
ファイル: Database.cs プロジェクト: zhlf1987/DotnetFramework
        /// <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);
        }