0

I created a Class library(.net Core) and I'm trying to add an entity framework model but I received the following message

enter image description here

Would anyone tell me what I miss ?

1
  • I'm trying to add entityframe work database first .emx template file to a class library .net core Nov 26, 2017 at 15:59

1 Answer 1

4

You cannot add a EF6 model to a .NET Core project, you must use EF Core code first/scaffoling. Start by adding th Microsoft.EntityFrameworkCore.SqlServer Nuget package

1
  • Do you have to use code first? Is there not database first option in core? If that is the case Core is off my christmas card list! Jan 31, 2018 at 21:59

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.