Пример #1
0
 private static void AddEmployee(_001_Model.IWriteOnlyRepository <_001_Model.Employee> sqlRepository)
 {
     sqlRepository.Add(new _001_Model.Employee()
     {
         Name = "Misha"
     });
     sqlRepository.Add(new _001_Model.Employee()
     {
         Name = "Vika"
     });
     sqlRepository.Add(new _001_Model.Employee()
     {
         Name = "Ira"
     });
     sqlRepository.Commit();
 }
Пример #2
0
 private static void AddManager(_001_Model.IWriteOnlyRepository <_001_Model.Manager> sqlRepository)
 {
     sqlRepository.Add(new _001_Model.Manager()
     {
         Name = "Misha_Manager"
     });
     sqlRepository.Add(new _001_Model.Manager()
     {
         Name = "Vika_Manager"
     });
     sqlRepository.Add(new _001_Model.Manager()
     {
         Name = "Ira_Manager"
     });
     sqlRepository.Commit();
 }