Unable to use SQLite in presence of ambient transactions #15413
Labels
closed-fixed
The issue has been fixed and is/will be included in the release indicated by the issue milestone.
customer-reported
type-bug
Milestone
Since EntityFrameworkCore 2.1 gained support for ambient transactions with some providers, it is no longer possible to use EntiteFrameworkCore.Sqlite when ambient transactions are present.
In EntityFrameworkCore 2.0 an exception would be thrown due to a warning that ambient transactions were not supported, but if you configured your warnings it was possible to just ignore the warning and the ambient transaction, obviously not participating in the transaction.
EntityFrameworkCore 2.1 added support for ambient transactions, but not for Sqlite (#13825). The same as before, it recognizes that EntityFrameworkCore.Sqlite does not support ambient transactions, and gives a warning that can be ignored, but if you try to ignore the warning it goes on and tries to use distributed transactions anyway, leading to a
NotSupportedException
.Steps to reproduce
https://github.com/mdonoughe/ef15413
Further technical details
EF Core version: 2.1.8, 2.2.3
Database Provider: Microsoft.EntityFrameworkCore.Sqlite
Operating system: Windows 10
IDE: Visual Studio 2017 15.9
The text was updated successfully, but these errors were encountered: