Closed Ksyruz closed 8 years ago
Could you provide more details please? How is your project.json
structured? You could be missing something.
Hi,
"Contexts" is a class library (repository) and the "Web" is the webapi.
I am running the commands using the class library location with the connection string embedded into the code.
See #9. Currently with "Tools Preview 1" you can't use a .NET Core tool in a library project.
What you can do is have the "Contexts" project contain your models, that's fine. But you'll have to use migrations inside your web app. So you'll use dotnet ef
inside your webapi project instead of your "Contexts" project.
Thanks for getting back so fast, I will do that.
@Ksyruz I'm closing this. If you still have problems you can open a new one.