Skip to content
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

Fixed the issue occurred when running update-database in the package … #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

bozhiqian
Copy link

…maanager:

Unable to create an object of type 'AppDbContext'. Add an implementation of 'IDesignTimeDbContextFactory' to the project,

And appended some missing change needed when upgrading from core 1.* to core 2.0. Thanks Gill for your a lot of excellent courses on Pluralsight that I learned.

Please let know if you don't want to change code so I can abandon my forked reps. Thanks.

…maanager:

Unable to create an object of type 'AppDbContext'. Add an implementation of 'IDesignTimeDbContextFactory' to the project,

And appended some missing change needed when upgrading from core 1.* to core 2.0. Thanks Gill for your a lot of excellent courses on Pluralsight that I learned.
@bozhiqian
Copy link
Author

Please note that running update-database from VS2017 nuget package consule is optional. If you don't generate database as design time, the app will generate at first run. This is because of the following line at "DbInitializer.cs".

_context.Database.EnsureCreated();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant