How to trigger Update-Database on a DbContext in a referenced assembly (NuGet package)

c# dbcontext entity-framework entity-framework-6

Accepted Answer

ZZZ_tmp
1
7/19/2016 9:37:27 AM

Popular Answer

migrations are first made possible becauseEnable-Migration , aConfiguration.cs The project will get the file. whether the file is available forCore.Project.Data , instruct Entity Framework to use this configuration:

Update-Database -ConfigurationTypeName Core.Project.Data.Migrations.Configuration -ProjectName Core.Project.Data


Related Questions





Related

Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow