Пример #1
0
 public ICollection<Testtable2> GetAllPersonTypes()
 {
     using (var ctx = new UnitOfWorkImpl())
     {
         return new TestTableRepository2().GetAll().ToList();
     }
 }
Пример #2
0
 public Testtable GetPersonById(int id)
 {
     using (var ctx = new UnitOfWorkImpl())
     {
         return new TestTableRepository().Fetch(id, x => x.Testtable2).SingleOrDefault();
     }
 }
Пример #3
0
 public ICollection<Testtable> GetAllPersons()
 {
     using (var ctx = new UnitOfWorkImpl())
     {
         return new TestTableRepository().Fetch(-1, x => x.Testtable2).ToList();
     }
 }