From cdc61eb4ea5309769ad4db84d92594e4dc3dff67 Mon Sep 17 00:00:00 2001 From: Michael Date: Mon, 20 Mar 2017 16:45:17 -0400 Subject: Initial commit (azure deploy test) --- Project-Unite/Migrations/Configuration.cs | 32 +++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 Project-Unite/Migrations/Configuration.cs (limited to 'Project-Unite/Migrations/Configuration.cs') diff --git a/Project-Unite/Migrations/Configuration.cs b/Project-Unite/Migrations/Configuration.cs new file mode 100644 index 0000000..a53d73e --- /dev/null +++ b/Project-Unite/Migrations/Configuration.cs @@ -0,0 +1,32 @@ +namespace Project_Unite.Migrations +{ + using System; + using System.Data.Entity; + using System.Data.Entity.Migrations; + using System.Linq; + + internal sealed class Configuration : DbMigrationsConfiguration + { + public Configuration() + { + AutomaticMigrationsEnabled = false; + ContextKey = "Project_Unite.Models.ApplicationDbContext"; + } + + protected override void Seed(Project_Unite.Models.ApplicationDbContext context) + { + // This method will be called after migrating to the latest version. + + // You can use the DbSet.AddOrUpdate() helper extension method + // to avoid creating duplicate seed data. E.g. + // + // context.People.AddOrUpdate( + // p => p.FullName, + // new Person { FullName = "Andrew Peters" }, + // new Person { FullName = "Brice Lambson" }, + // new Person { FullName = "Rowan Miller" } + // ); + // + } + } +} -- cgit v1.2.3