We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9d3e71c + c896e41 commit 60177a3Copy full SHA for 60177a3
Extensions/Xtensive.Orm.BulkOperations/Internals/Operation.cs
@@ -1,4 +1,4 @@
1
-// Copyright (C) 2019-2020 Xtensive LLC.
+// Copyright (C) 2019-2021 Xtensive LLC.
2
// This code is distributed under MIT license terms.
3
// See the License.txt file in the project root for more information.
4
@@ -45,13 +45,7 @@ public int Execute()
45
46
#region Non-public methods
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
- }
+ protected void EnsureTransactionIsStarted() => Transaction.Require(QueryProvider.Session);
55
56
protected abstract int ExecuteInternal();
57
0 commit comments