public BookRepository(CasaDoCodigoDbContext dbContext) : base(dbContext, e => e.Id) { }
internal RepositoryBase(CasaDoCodigoDbContext dbContext, Expression <Func <TEntity, TKey> > keySelector) { _dbContext = dbContext ?? throw new ArgumentNullException(nameof(dbContext)); _keySelector = keySelector ?? throw new ArgumentNullException(nameof(keySelector)); }
public CategoryRepository(CasaDoCodigoDbContext dbContext) : base(dbContext, e => e.Id) { }