@@ -132,6 +132,9 @@ protected int SplitExecuteAffrows(int valuesLimit, int parameterLimit)
132132 ClearData ( ) ;
133133 return ret ;
134134 }
135+ if ( _transaction == null )
136+ this . WithTransaction ( _orm . Ado . TransactionCurrentThread ) ;
137+
135138 if ( _transaction != null )
136139 {
137140 for ( var a = 0 ; a < ss . Length ; a ++ )
@@ -180,6 +183,9 @@ async protected Task<int> SplitExecuteAffrowsAsync(int valuesLimit, int paramete
180183 ClearData ( ) ;
181184 return ret ;
182185 }
186+ if ( _transaction == null )
187+ this . WithTransaction ( _orm . Ado . TransactionCurrentThread ) ;
188+
183189 if ( _transaction != null )
184190 {
185191 for ( var a = 0 ; a < ss . Length ; a ++ )
@@ -228,6 +234,9 @@ protected long SplitExecuteIdentity(int valuesLimit, int parameterLimit)
228234 ClearData ( ) ;
229235 return ret ;
230236 }
237+ if ( _transaction == null )
238+ this . WithTransaction ( _orm . Ado . TransactionCurrentThread ) ;
239+
231240 if ( _transaction != null )
232241 {
233242 for ( var a = 0 ; a < ss . Length ; a ++ )
@@ -278,6 +287,9 @@ async protected Task<long> SplitExecuteIdentityAsync(int valuesLimit, int parame
278287 ClearData ( ) ;
279288 return ret ;
280289 }
290+ if ( _transaction == null )
291+ this . WithTransaction ( _orm . Ado . TransactionCurrentThread ) ;
292+
281293 if ( _transaction != null )
282294 {
283295 for ( var a = 0 ; a < ss . Length ; a ++ )
@@ -328,6 +340,9 @@ protected List<T1> SplitExecuteInserted(int valuesLimit, int parameterLimit)
328340 ClearData ( ) ;
329341 return ret ;
330342 }
343+ if ( _transaction == null )
344+ this . WithTransaction ( _orm . Ado . TransactionCurrentThread ) ;
345+
331346 if ( _transaction != null )
332347 {
333348 for ( var a = 0 ; a < ss . Length ; a ++ )
@@ -376,6 +391,9 @@ async protected Task<List<T1>> SplitExecuteInsertedAsync(int valuesLimit, int pa
376391 ClearData ( ) ;
377392 return ret ;
378393 }
394+ if ( _transaction == null )
395+ this . WithTransaction ( _orm . Ado . TransactionCurrentThread ) ;
396+
379397 if ( _transaction != null )
380398 {
381399 for ( var a = 0 ; a < ss . Length ; a ++ )
0 commit comments