Ibrahim Kais Ibrahim
Ibrahim Kais Ibrahim

Reputation: 840

How to add entity framework core to a class library(.net core)

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 ?

Upvotes: 0

Views: 1124

Answers (1)

ErikEJ
ErikEJ

Reputation: 41759

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

Upvotes: 4

Related Questions