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