EF6 generate seed data for deployment to production

entity-framework entity-framework-6

Question

Sql server and entity framework 6 are both being used in an Asp.Net MVC application I have. Since I can't do automated migrations in production, I execute the command below to create a script that I can provide to the DBA:

update-database -SourceMigration $InitialDatabase -script

This creates a script to build the tables and other objects, but it does not enter the seed data that I set in my Configuration class's Seed function.

Does EF have the ability to create script for the seed data?

1
3
4/1/2016 1:28:29 PM

Accepted Answer

ZZZ_tmp
3
4/1/2016 2:44:04 PM



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