public void Create() { new AddrType(_context).Create(); new BloodCreator(_context).Create(); new CountryCreator(_context).Create(); new SpecCreator(_context).Create(); new ReligionCreator(_context).Create(); new BankCreator(_context).Create(); new DocumentCreator(_context).Create(); new BankTypeCreator(_context).Create(); new FamilyStatus(_context).Create(); new GradeCreator(_context).Create(); new IdTypeCreator(_context).Create(); new KeyPeopleCreator(_context).Create(); new MarStatusCreator(_context).Create(); new PhoneTypeCreator(_context).Create(); new JobTitleCreator(_context).Create(); new NationCreator(_context).Create(); new OccupationCreator(_context).Create(); //new DefaultSettingsCreator(_context).Create(); //new CityCreator(_context).Create(); _context.SaveChanges(); }
private void AddIfNotExists(MS_City city) { if (_context.MS_City.Any(l => l.cityCode == city.cityCode)) { return; } _context.MS_City.Add(city); _context.SaveChanges(); }
private void AddIfNotExists(MS_Occupation occupation) { if (_context.MS_Occupation.Any(l => l.occID == occupation.occID)) { return; } _context.MS_Occupation.Add(occupation); _context.SaveChanges(); }
private void AddIfNotExists(LK_Spec spec) { if (_context.LK_Spec.Any(l => l.specCode == spec.specCode)) { return; } _context.LK_Spec.Add(spec); _context.SaveChanges(); }
private void AddIfNotExists(MS_Nation nation) { if (_context.MS_Nation.Any(l => l.nationID == nation.nationID)) { return; } _context.MS_Nation.Add(nation); _context.SaveChanges(); }
private void AddIfNotExists(LK_Religion religion) { if (_context.LK_Religion.Any(l => l.relCode == religion.relCode)) { return; } _context.LK_Religion.Add(religion); _context.SaveChanges(); }
private void AddIfNotExists(MS_BankPersonal bank) { if (_context.MS_BankPersonal.Any(l => l.bankCode == bank.bankCode)) { return; } _context.MS_BankPersonal.Add(bank); _context.SaveChanges(); }
private void AddIfNotExists(MS_JobTitle jobTitle) { if (_context.MS_JobTitle.Any(l => l.jobTitleID == jobTitle.jobTitleID)) { return; } _context.MS_JobTitle.Add(jobTitle); _context.SaveChanges(); }
private void AddIfNotExists(MS_Document document) { if (_context.MS_Document.Any(l => l.documentType == document.documentType)) { return; } _context.MS_Document.Add(document); _context.SaveChanges(); }
private void AddIfNotExists(LK_PhoneType phoneType) { if (_context.LK_PhoneType.Any(l => l.phoneType == phoneType.phoneType)) { return; } _context.LK_PhoneType.Add(phoneType); _context.SaveChanges(); }
private void AddIfNotExists(LK_Country country) { if (_context.LK_Country.Any(l => l.country == country.country)) { return; } _context.LK_Country.Add(country); _context.SaveChanges(); }
private void AddIfNotExists(LK_BankType bankType) { if (_context.LK_bankType.Any(l => l.bankType == bankType.bankType)) { return; } _context.LK_bankType.Add(bankType); _context.SaveChanges(); }
private void AddIfNotExists(LK_FamilyStatus familyStatus) { if (_context.LK_FamilyStatus.Any(l => l.famStatus == familyStatus.famStatus)) { return; } _context.LK_FamilyStatus.Add(familyStatus); _context.SaveChanges(); }
private void AddIfNotExists(LK_MarStatus marStatus) { if (_context.LK_MarStatus.Any(l => l.marStatus == marStatus.marStatus)) { return; } _context.LK_MarStatus.Add(marStatus); _context.SaveChanges(); }
private void AddIfNotExists(LK_IDType idType) { if (_context.LK_IDType.Any(l => l.idType == idType.idType)) { return; } _context.LK_IDType.Add(idType); _context.SaveChanges(); }
private void AddIfNotExists(LK_KeyPeople initialKeyPeople) { if (_context.LK_KeyPeople.Any(l => l.keyPeopleDesc == initialKeyPeople.keyPeopleDesc)) { return; } _context.LK_KeyPeople.Add(initialKeyPeople); _context.SaveChanges(); }
private void AddIfNotExists(LK_Blood blood) { if (_context.LK_Bloods.Any(l => l.bloodCode == blood.bloodCode)) { return; } _context.LK_Bloods.Add(blood); _context.SaveChanges(); }
private void AddIfNotExists(LK_Grade grade) { if (_context.LK_Grade.Any(l => l.gradeCode == grade.gradeCode)) { return; } _context.LK_Grade.Add(grade); _context.SaveChanges(); }
private void AddIfNotExists(LK_AddrType addrType) { if (_context.LK_AddrType.Any(l => l.addrType == addrType.addrType)) { return; } _context.LK_AddrType.Add(addrType); _context.SaveChanges(); }