namespace HealthchoiceMVC.Migrations { using HealthchoiceMVC.Models; using System; using System.Data.Entity; using System.Data.Entity.Migrations; using System.Linq; internal sealed class Configuration : DbMigrationsConfiguration { public Configuration() { AutomaticMigrationsEnabled = true; ContextKey = "HealthchoiceMVC.Models.HCDBEntities"; } protected override void Seed(HealthchoiceMVC.Models.HCDBEntities context) { // This method will be called after migrating to the latest version. context.ContactTypes.AddOrUpdate(x => x.ContactTypeId, new ContactType() { ContactTypeId = 1, Description = "Email", Validator = "email" }, new ContactType() { ContactTypeId = 2, Description = "CellPhone", Validator = "number" }, new ContactType() { ContactTypeId = 3, Description = "LandLine", Validator = "number" }, new ContactType() { ContactTypeId = 4, Description = "Fax", Validator = "number" }, new ContactType() { ContactTypeId = 5, Description = "Address", Validator = "address" } ); context.ContactClasses.AddOrUpdate(x => x.ContactClassId, new ContactClass() { ContactClassId = 1, Description = "Home"}, new ContactClass() { ContactClassId = 2, Description = "Work" }, new ContactClass() { ContactClassId = 3, Description = "Other" } ); context.PersonTypes.AddOrUpdate(x => x.PersonTypeId, new PersonType() { PersonTypeId = 1, Description = "Practice Admin" }, new PersonType() { PersonTypeId = 2, Description = "Practice Manager" }, new PersonType() { PersonTypeId = 3, Description = "Practitioner" }, new PersonType() { PersonTypeId = 4, Description = "Patient" }, new PersonType() { PersonTypeId = 5, Description = "Dependent" }, new PersonType() { PersonTypeId = 6, Description = "Next of Kin" }, new PersonType() { PersonTypeId = 7, Description = "Account Payer" }, new PersonType() { PersonTypeId = 8, Description = "Referring Doctor" } ); } } }