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 Commented 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

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

1 Comment

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!

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.