Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- namespace testintilaq2.Migrations
- {
- using System;
- using System.Data.Entity;
- using System.Data.Entity.Migrations;
- using System.Linq;
- using testintilaq2.Models;
- internal sealed class Configuration : DbMigrationsConfiguration<testintilaq2.context.intilaqcontext>
- {
- public Configuration()
- {
- AutomaticMigrationsEnabled = false;
- }
- protected override void Seed(testintilaq2.context.intilaqcontext context)
- {
- // This method will be called after migrating to the latest version.
- // You can use the DbSet<T>.AddOrUpdate() helper extension method
- // to avoid creating duplicate seed data. E.g.
- //
- context.Employee.AddOrUpdate(
- p => p.FirstName,
- new Employee { FirstName = "Andrew Peters" },
- new Employee { FirstName = "Brice Lambson" },
- new Employee { FirstName = "Rowan Miller" }
- );
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement