Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Entity Framework Core does not support ambient transactions #10628

Closed
aiyowa opened this issue Jan 2, 2018 · 1 comment
Closed

Entity Framework Core does not support ambient transactions #10628

aiyowa opened this issue Jan 2, 2018 · 1 comment

Comments

@aiyowa
Copy link

aiyowa commented Jan 2, 2018

When using a transaction scope around Microsoft.EntityFrameworkCore.SqlServer 2.0.1, I get an exception:

Warning as error exception for warning 'Microsoft.EntityFrameworkCore.Database.Transaction.AmbientTransactionWarning': An ambient transaction has been detected. Entity Framework Core does not support ambient transactions. See http://go.microsoft.com/fwlink/?LinkId=800142 To suppress this Exception use the DbContextOptionsBuilder.ConfigureWarnings API. ConfigureWarnings can be used when overriding the DbContext.OnConfiguring method or using AddDbContext on the application service provider.

Is there any plan for support TransactionScope with EntityFramework Core?

@ajcvickers
Copy link
Member

Duplicate of #5595

@ajcvickers ajcvickers marked this as a duplicate of #5595 Jan 2, 2018
@ajcvickers ajcvickers reopened this Oct 16, 2022
@ajcvickers ajcvickers closed this as not planned Won't fix, can't repro, duplicate, stale Oct 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants