-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mvc-ef Migration #2
Comments
Do you mean automatic migration? From the sample of ASP.NET Identity, there might be one piece of code required:
|
I mean code first migrations using ef tools. "tools": {
"dotnet-ef": {
"version": "1.0.0-*",
"imports": [
"portable-net45+wp80+win8+wpa81+dnxcore50",
"portable-net45+win8+wp8+wpa81",
"portable-net45+win8+wp8"
]
}
},
... |
I think you need pass in the connectionString somewhere then the tool can compare the db schema. |
It's now using Microsoft.EntityFrameworkCore.Tools. EF Issue |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, it's me again.
Does it work to create migration
dotnet ef migrations add Init
using mvc-ef sample ?System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ArgumentNullException: Value cannot be null. Parameter name: assemblyName at System.Reflection.AssemblyName..ctor(String assemblyName)
The text was updated successfully, but these errors were encountered: