Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

EF Core Migrations in NuGet package

$
0
0

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 ?  


Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>