DbContextScope icon indicating copy to clipboard operation
DbContextScope copied to clipboard

Moving to .Net Standard 2.0 & EF 2.0

Open reader-man opened this issue 7 years ago • 8 comments

Hi, Thanks for the great library. is there a plan to go to .Net Standard 2.0 & EF 2.0?

Regards.

reader-man avatar Oct 05 '17 09:10 reader-man

+1

jorgevinagre avatar Jan 16 '18 12:01 jorgevinagre

+2

gztonny avatar Jan 19 '18 15:01 gztonny

I have added support for netstandard2.0 and EF Core 2.0.1

I PRed to the most up-to-date version of this repo I could find at tlcavert's fork.

Alternatively, you can just use my fork.

VictorioBerra avatar Feb 08 '18 21:02 VictorioBerra

@VictorioBerra Thank you!

Rennix09 avatar Jun 01 '18 06:06 Rennix09

@VictorioBerra is your fork currently available in any form of public nuget package?

jotatoledo avatar Nov 21 '18 15:11 jotatoledo

@jotatoledo It is not out there in a nuget package at the moment sorry, I think some code needs to be updated actually for the latest EF Core. For example: https://github.com/mehdime/DbContextScope/blob/master/Mehdime.Entity/Implementations/DbContextCollection.cs#L79

I dont think you can do this anymore, and instead must use one of the following options: https://docs.microsoft.com/en-us/ef/core/saving/transactions

VictorioBerra avatar Nov 21 '18 15:11 VictorioBerra

+1!

deepblueday avatar Sep 04 '19 14:09 deepblueday

based on @VictorioBerra post, I forked his repo and changed target framework to netstandard2.0. Default ef core version is v2.0.0. But it is compatible with v2.2.6 and v3.1.1 as well!

https://github.com/dojo90/DbContextScope

https://www.nuget.org/packages/DoJo.EntityFrameworkCore.DbContextScope

djonasdev avatar Feb 18 '20 13:02 djonasdev