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.

29 lines
995 B

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