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

.net-core entity-framework entity-framework-core

Question

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
0
11/26/2017 1:29:33 PM

Accepted Answer

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

4
11/26/2017 2:11:54 PM


Related Questions





Related

Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow