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