Closed schmitch closed 2 years ago
Hi @schmitch , what if we just upgrade project to netstandard2.0
? Anyway we have multitarget project SDKs.
it's not possible to use netstandard2.0 without dropping support for dotnet core 1.x (See: https://docs.microsoft.com/de-de/dotnet/standard/net-standard)
Do we really need to care about .net core 1.x
support? Even official support will end soon (see https://dotnet.microsoft.com/platform/support/policy/dotnet-core)
The thing I'm worrying now is about full framework support but it's already covered by multitarget build.
I do not care about .net core 1.x I do not think that many users are on it. and yes full framework is covered by multitarget build.
however even with System.Transactions I would keep the current code and just add System.Transactions aswell, so that everything works. TransactionScope and passing Transactions directly.
/cc @ahydrax I actually tested the change. and everything works, either via transaction scope or with direct transactions (the latter has benefits)
i.e. the problem with Transaction Scope is that you need to reconfigure PostgreSQL to support prepared transactions
@ahydrax: this is a PR that would solve Issue #8, it still needs tests, however I already tested it and it looks working.
The design is as follow:
it will only work with a
NpgsqlTransaction
sinceTransactionScope
is only supported within .net standard >= 2.0