You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
1.0 KiB

  1. namespace Sevomin.Models.Migrations
  2. {
  3. using System;
  4. using System.Data.Entity;
  5. using System.Data.Entity.Migrations;
  6. using System.Linq;
  7. internal sealed class Configuration : DbMigrationsConfiguration<Sevomin.Models.UsersDbContext>
  8. {
  9. public Configuration()
  10. {
  11. AutomaticMigrationsEnabled = false;
  12. ContextKey = "Sevomin.Models.UsersDbContext";
  13. }
  14. protected override void Seed(Sevomin.Models.UsersDbContext context)
  15. {
  16. // This method will be called after migrating to the latest version.
  17. // You can use the DbSet<T>.AddOrUpdate() helper extension method
  18. // to avoid creating duplicate seed data. E.g.
  19. //
  20. // context.People.AddOrUpdate(
  21. // p => p.FullName,
  22. // new Person { FullName = "Andrew Peters" },
  23. // new Person { FullName = "Brice Lambson" },
  24. // new Person { FullName = "Rowan Miller" }
  25. // );
  26. //
  27. }
  28. }
  29. }