Is there any way to know transaction has completed?
up vote
1
down vote
favorite
System.Transactions.Transaction
class has TransactionCompleted
event to which I can subscribe.
Is it possible to schedule a continuation after IDbContextTransaction.Commit
is called?
Sure, I may call code explicitly after committing a transaction, but I have an overloaded version of SaveChanges
where I want to detect externally started transaction and add some actions to run after it was committed.
ef-core-2.1
add a comment |
up vote
1
down vote
favorite
System.Transactions.Transaction
class has TransactionCompleted
event to which I can subscribe.
Is it possible to schedule a continuation after IDbContextTransaction.Commit
is called?
Sure, I may call code explicitly after committing a transaction, but I have an overloaded version of SaveChanges
where I want to detect externally started transaction and add some actions to run after it was committed.
ef-core-2.1
add a comment |
up vote
1
down vote
favorite
up vote
1
down vote
favorite
System.Transactions.Transaction
class has TransactionCompleted
event to which I can subscribe.
Is it possible to schedule a continuation after IDbContextTransaction.Commit
is called?
Sure, I may call code explicitly after committing a transaction, but I have an overloaded version of SaveChanges
where I want to detect externally started transaction and add some actions to run after it was committed.
ef-core-2.1
System.Transactions.Transaction
class has TransactionCompleted
event to which I can subscribe.
Is it possible to schedule a continuation after IDbContextTransaction.Commit
is called?
Sure, I may call code explicitly after committing a transaction, but I have an overloaded version of SaveChanges
where I want to detect externally started transaction and add some actions to run after it was committed.
ef-core-2.1
ef-core-2.1
asked Nov 10 at 20:12
Pavel Voronin
7,25453884
7,25453884
add a comment |
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53243004%2fis-there-any-way-to-know-transaction-has-completed%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown