public BaseRepository(ILibraryContext context) { this.context = context; this.dbSet = context.DbSet <TEntity>(); }