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