private void SeedAdmin(ApplicationUser user, PatientManagementSystemDBContext patientManagementDbContext) { Admin admin = new Admin(); admin.IdentityId = user.Id; admin.UserName = user.UserName; admin.Email = user.Email; admin.FirstName = user.UserName; admin.LastName = user.UserName; admin.Address1 = "none"; admin.Address2 = "none"; admin.SSN = "123456"; admin.State = "none"; admin.City = "None"; admin.Country = "None"; patientManagementDbContext.Admins.Add(admin); patientManagementDbContext.SaveChanges(); }
private void SeedPatient(ApplicationUser user, PatientManagementSystemDBContext patientManagementDbContext) { Patient patient = new Patient(); patient.IdentityId = user.Id; patient.UserName = user.UserName; patient.Email = user.Email; patient.FirstName = user.UserName; patient.LastName = user.UserName; patient.Address1 = "none"; patient.Address2 = "none"; patient.SSN = "123456"; patient.State = "none"; patient.City = "None"; patient.Country = "None"; patient.EmergencyContactNumber = "21312451"; patientManagementDbContext.Patients.Add(patient); patientManagementDbContext.SaveChanges(); }
private void SeedDoctor(ApplicationUser user, PatientManagementSystemDBContext patientManagementDbContext) { Doctor doctor = new Doctor(); doctor.IdentityId = user.Id; doctor.UserName = user.UserName; doctor.Email = user.Email; doctor.FirstName = user.UserName; doctor.LastName = user.UserName; doctor.Address1 = "none"; doctor.Address2 = "none"; doctor.SSN = "123456"; doctor.State = "none"; doctor.City = "None"; doctor.Country = "None"; doctor.University = "None"; doctor.Specialization = Doctor.Specialty.Allergology; doctor.LicenseNo = "213412"; patientManagementDbContext.Doctors.Add(doctor); patientManagementDbContext.SaveChanges(); }