Beispiel #1
0
 public TEntity GetById(int id)
 {
     return(_context.Set <TEntity>().SingleOrDefault(e => e.Id == id));
 }
Beispiel #2
0
 public Repository(WebProjVetContext context)
 {
     _context = context;
     dataset  = _context.Set <TEntity>();
 }