efcore icon indicating copy to clipboard operation
efcore copied to clipboard

Need TransactionScope in .net core.

Open mukundabrt opened this issue 10 years ago • 2 comments

Need TransactionScope in .net core.

We follow layer architecture pattern where transaction boundaries are determined in the business logic layer, not in the data access layer. Since the business layer is not aware of database connections, we cannot use connection based transaction APIs. As long as TransactionScope is not available in .net core we will have no choice. ... ... ... ... Otherwise we have to change our architecture for .net core or move to classic.

mukundabrt avatar Sep 17 '16 15:09 mukundabrt

@mukundabrt this is tracked by https://github.com/dotnet/corefx/issues/2949. Note that TransactionScope has already been ported to .NET Core but will only be available in .NET Core 1.2.

Regardless, Entity Framework really has nothing to do with this.

roji avatar Sep 17 '16 16:09 roji

We'll need to do some work on EF Core: https://github.com/aspnet/EntityFramework/issues/5595.

divega avatar Sep 17 '16 17:09 divega