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.
2
2
// This code is distributed under MIT license terms.
3
3
// See the License.txt file in the project root for more information.
4
4
@@ -45,13 +45,7 @@ public int Execute()
45
45
46
46
#region Non-public methods
47
47
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 ) ;
55
49
56
50
protected abstract int ExecuteInternal ( ) ;
57
51
You can’t perform that action at this time.
0 commit comments