I am starting to port a EF6 application to EF Core. The app also uses Microsoft.AspNet.Identity.EntityFramework. However I am unable to find if it is possible to use that package with EF Core. It seems like I need to use
Microsoft.AspNetCore.Identity.EntityFrameworkCore, but this seem to force me to move to Asp.Net Core.
Is it possible to avoid that, i.e. Can I stick with AspNet and move from EF6 to EF Core or do I have to move from AspNet to Asp.Net Core at the same time? I have tried to find an answer in the docs, so any pointers would be helpfull!
You do not need to move your entire application to use the .NET Core because .NET Full Framework can reference .NET Core libraries. The opposite is also true, NET Core 2.0+ can reference full .NET Framework libraries.
However, Microsoft.AspNetCore.Identity.EntityFrameworkCore is dependent on Microsoft.AspNetCore.Identity and will not be able to 'talk' to Microsoft.AspNet.Identity.EntityFramework, at a minimum you would need to isolate your other dependencies on Microsoft.AspNet.Identity. It's not readily apparent if you will run into any conflicts but I would err on the side of caution and refactor your (Full .NET Framework) application to only depend on Microsoft.AspNetCore.Identity (Instead of both AspNet and AspNetCore simultaneously) which is completely feasible.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With