TransactionScope in .net core 2.0 confusion

Posts   
 
    
yowl
User
Posts: 266
Joined: 11-Feb-2008
# Posted on: 07-Apr-2018 16:35:27   

Hi,

Here :

http://www.llblgen.com/Documentation/5.3/LLBLGen%20Pro%20RTF/NetFullvsNetstandard.htm

its says

System.Transactions.TransactionScope, while supported by our code, won't work at runtime as it's not implemented in SqlClient on .NET core: it will throw an exception at runtime in SqlConnection. This is a limitation of .NET Core 2.0.

And here:

https://docs.microsoft.com/en-us/dotnet/api/system.transactions.transactionscope?view=netcore-2.0

it uses TransactionScope and says

Applies to .NET Core 2.1, 2.0

So as its supported in LLblgen, is it working in .net core 2.0 now?

Thanks for any clarification.

Scott

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39588
Joined: 17-Aug-2003
# Posted on: 08-Apr-2018 11:02:03   

It's not implemented in SqlClient on .NET core 2.0, it is in .NET core 2.1. So the interfaces / classes might be there on .NET core2, it won't work (it throws exceptions actually). That's what we ran into and some research led to the conclusion it wasn't fully implemented in .net core 2.0. They have implemented it in full in 2.1, so using .net core 2.1 should make it work.

Frans Bouma | Lead developer LLBLGen Pro
yowl
User
Posts: 266
Joined: 11-Feb-2008
# Posted on: 08-Apr-2018 16:37:50   

thanks for the info. Sounds fine for me.