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.

31 lines
1.0 KiB

10 years ago
  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.SevominDbContext>
  8. {
  9. public Configuration()
  10. {
  11. AutomaticMigrationsEnabled = false;
  12. }
  13. protected override void Seed(Sevomin.Models.SevominDbContext context)
  14. {
  15. // This method will be called after migrating to the latest version.
  16. // You can use the DbSet<T>.AddOrUpdate() helper extension method
  17. // to avoid creating duplicate seed data. E.g.
  18. //
  19. // context.People.AddOrUpdate(
  20. // p => p.FullName,
  21. // new Person { FullName = "Andrew Peters" },
  22. // new Person { FullName = "Brice Lambson" },
  23. // new Person { FullName = "Rowan Miller" }
  24. // );
  25. //
  26. }
  27. }
  28. }