0

I am able to add EntityFramework to ASP.NET Core application that runs on top of .NET Framework (not on .Net Core). The CR operations are working fine, but not able to enable migration since I am using Code First approach. But as per the link Limited support for EF6 in ASP Net Core

there are some limitations. Is there any work around for this to make happen?

Any help would be deeply appreciated. Thank you

1 Answer 1

2

There is a third party tool that enables EF 6 Migrations with .NET Core https://github.com/mrahhal/Migrator.EF6

More information about EF6 with ASP.NET Core here: https://learn.microsoft.com/en-us/aspnet/core/data/entity-framework-6

Sign up to request clarification or add additional context in comments.

4 Comments

Thank you. I checked the second link and tried the solution but it is not working. I am not able to add dependency for EF6
Did you create a standard Csproj class library project and add EF 6 to that (as described in the docs) ?
I am sorry I missed that part. Moreover I am having a ServiceFabric microservice application. So I added the EF 6 to the service project. Let me try what you mentioned.
The question states "not .Net Core".

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.