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

Migrations #18

Open
ccpony opened this issue Jun 29, 2020 · 1 comment
Open

Migrations #18

ccpony opened this issue Jun 29, 2020 · 1 comment

Comments

@ccpony
Copy link

ccpony commented Jun 29, 2020

Thank you for an excellent framework.

Attempting to run: add-migrations init, I get the following error message in PM:

Unable to create an object of type 'OrdersContext'. For the different patterns supported at design time, see https://go.microsoft.com/fwlink/?linkid=851728

Any suggestions on how I can get through this issue?

Thank you.

@ccpony
Copy link
Author

ccpony commented Jul 1, 2020

I think that I could have been more clear. The error message that I included, above, would suggest that I tried to run migrations on "sample-dotnet-core-cqrs-api" but, obviously, that code uses NHibernate I should have referred to "Entity-Framework-Core-Examples". The error message when running "add-migrations", more exactly was:

Unable to create an object of type 'SchoolContext'. For the different patterns supported at design time, see https://go.microsoft.com/fwlink/?linkid=851728

Watching your excellent Pluralsight course on this topic, I noticed that you didn't include migrations with your workflow. I'd like to include migrations, if possible, but I'm confronted with this error.

Thanks for your help.

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

No branches or pull requests

1 participant