public UserRepository(SudeDBContext ctx) { //this._ctx = ctx; this._userRepository = new GenericRepository <User>(ctx); }
public ServingRepository(SudeDBContext ctx) { this._servingRepository = new GenericRepository <Serving>(ctx); }
public GenericRepository(SudeDBContext ctx) { this._ctx = ctx; _dbSet = _ctx.Set <TEntity>(); }