Example #1
0
 public Repository(BillingDBContext context)
 {
     this._context  = context;
     this._entities = _context.Set <TEntity>();
 }
Example #2
0
 public async Task <TEntity> GetById(int id)
 {
     return(await _context.Set <TEntity>().FindAsync(id));
 }