public GenericRepository(DbContextOptions <ForumDbContext> dbContextOptions) { _context = new ForumDbContext(dbContextOptions); table = _context.Set <T>(); }
public BaseRepository(ForumDbContext dbContext) { _dbContext = dbContext; _dbSet = dbContext.Set <T>(); }
public RepositoryBase(ForumDbContext context) { this.context = context; this.dbSet = context.Set <TEntity>(); }