Question: Code First Migration using the database context 'ContactContext'
274188A opened this issue · comments
I been looking at approaches to carry out code first migrations using the Context for 'blazorcontactsdb' database (ContactContext
). For example - adding a new property on the ContactsApp.Model.Contact
class.
So the context obviously exists in a different assembly from ContactsApp.Server
.
Is there some way of running a migration eg dotnet ef migrations add xxx -o Migrations
with a switch so it can find the context in another project?
Cheers
I had to add a factory hint. Readme is updated to reflect the proper command.