MigraConf.cs 436 B

12345678910111213141516171819
  1. using System.Data.Entity.Migrations;
  2. using Y.DB.DAO;
  3. namespace Y.DB.Migrations
  4. {
  5. internal sealed class MigraConf : DbMigrationsConfiguration<DbTable>
  6. {
  7. public MigraConf()
  8. {
  9. AutomaticMigrationsEnabled = true;
  10. AutomaticMigrationDataLossAllowed = true;
  11. //ContextKey = "ContextKey";
  12. }
  13. protected override void Seed(DbTable context)
  14. {
  15. }
  16. }
  17. }