Beispiel #1
0
 public async Task <T> GetByIdAsync(int id)
 {
     return(await _context.Set <T>().FindAsync(id));
 }
 public Repository(STContext context)
 {
     _context = context;
     Entities = context.Set <TEntity>();
 }