public GenericRepository(LibraryContext context) { this._context = context; entities = context.Set<TEntity>(); }
public Repository(LibraryContext libraryContext) { _libraryContext = libraryContext; entities = libraryContext.Set <TEntity>(); }