Last post Jun 18, 2017 04:19 PM by JBetancourt
Jun 18, 2017 01:50 PM|Graham_Wright|LINK
I have a number of domain specific contexts that I wish to share between solutions.
Initially I developed these as separate projects with in the first solution.
I could run add-migration and update_database by specifying the context and setting the default project in the Package Manager console.
I have migrated these to NuGet packages so that they can be shared between projects but I can no longer call the migration commands as the project / package is outside the solution.
Is there a way of generating the migrations for context contained in an external package installed via NuGet ?
Jun 18, 2017 04:19 PM|JBetancourt|LINK
keep doing the migrations on the source projects, I think you should focus on making easier to generate the nuget packages, you could add a an external tool(MEnu Tools\external tools) that calls nuget to generate the packages, a post build event that does
it, a source control hook, I dont know anything that makes the process of creating the nuget packages really easy