I have three projects in (VS2017 and ef core) and want to run Add-migration.
The domainmodel have the entities and I want to have the migrationfiles/ output folder in a data project together with my context file.
I want to avoid having dependecies between domainmodel and entity framework. EntityFrameworkscore only have dependecies to Data. Any suggestions how to run add-migration with this setup to get the migrationfiles in data instead of core/domainmodel?
Add-Migration -Name InitMigration -OutputDir Migrations -Context myDBContext -Project Business\Core
According to @joakimja the solution was to run:
Add-Migration command without the
-Context myDBContext -Project Business\Core arguments.