File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed
Extensions/Xtensive.Orm.BulkOperations/Internals Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change 1- // Copyright (C) 2019-2020 Xtensive LLC.
1+ // Copyright (C) 2019-2021 Xtensive LLC.
22// This code is distributed under MIT license terms.
33// See the License.txt file in the project root for more information.
44
@@ -45,13 +45,7 @@ public int Execute()
4545
4646 #region Non-public methods
4747
48- protected void EnsureTransactionIsStarted ( )
49- {
50- var accessor = QueryProvider . Session . Services . Demand < DirectSqlAccessor > ( ) ;
51- #pragma warning disable 168
52- var notUsed = accessor . Transaction ;
53- #pragma warning restore 168
54- }
48+ protected void EnsureTransactionIsStarted ( ) => Transaction . Require ( QueryProvider . Session ) ;
5549
5650 protected abstract int ExecuteInternal ( ) ;
5751
You can’t perform that action at this time.
0 commit comments