Alternative to TransactionScope of System.Transaction assembly in .net core framework

后端 未结 2 890
难免孤独
难免孤独 2021-01-03 23:07

The System.Transaction assembly is not part of the .net core framework at the moment (see https://github.com/dotnet/corefx/issues/2949). In my application (asp.net core mvc)

2条回答
  •  醉梦人生
    2021-01-03 23:55

    Just wanted to leave a comment here in case anybody wandered by this post while researching this issue. I ran into this randomly on .net core 2.1 using Dapper, which includes System.Data.SqlClient 4.5.0 by default. Adding version System.Data.SqlClient 4.5.1 independently via nuget worked. So it seems this has been fixed as of 4.5.1.

    The following are the relevant sections of my csproj file:

    
       
       
    
    

提交回复
热议问题