The next generation of the Teknik Services. Written in ASP.NET.
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.

Configuration.cs 1.0KB

1234567891011121314151617181920212223242526272829303132
  1. namespace Teknik.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<Teknik.Models.TeknikEntities>
  8. {
  9. public Configuration()
  10. {
  11. AutomaticMigrationsEnabled = true;
  12. AutomaticMigrationDataLossAllowed = true;
  13. }
  14. protected override void Seed(Teknik.Models.TeknikEntities 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. }