Rotex.EfManager.AspNetCore by gbenga adetayo

<PackageReference Include="Rotex.EfManager.AspNetCore" Version="1.0.2" />

 Repository<T>

public class Repository<T> : IRepository<T>, IRepository1<T>
protected IUnitOfWork context

public int Count { get; }

public bool Enrolled { get; }

public Repository()

public void Add(T item)

public bool Add(T entity, ICacheManager cacheManager, Action<T> advanceAction = null, Action<T> defferAction = null, bool commitUnitOfWork = true, string[] removePatterns)

public Task<bool> AddAsync(T entity, ICacheManager cacheManager, Action<T> advanceAction = null, Action<T> defferAction = null, bool commitUnitOfWork = true, string[] removePatterns)

public void AddRange(IEnumerable<T> obj)

public bool AddRange(IEnumerable<T> entity, ICacheManager cacheManager, Action<T> advanceAction = null, Action<T> defferAction = null, bool commitUnitOfWork = true, string[] removePatterns)

public Task<bool> AddRangeAsync(IEnumerable<T> entity, ICacheManager cacheManager, Action<T> advanceAction = null, Action<T> defferAction = null, bool commitUnitOfWork = true, string[] removePatterns)

public virtual void Attach(T entity)

public bool Contains(T item)

public void EnrolInUnitOfWork(IUnitOfWork unitOfWork)

public virtual void Entry(T entity, EntityState state)

public virtual T Find(Expression<Func<T, bool>> criteria)

public virtual T Find(Expression<Func<T, bool>> criteria, Expression<Func<T, object>>[] lazyInclude)

public virtual Task<T> FindAsync(Expression<Func<T, bool>> criteria)

public virtual Task<T> FindAsync(Expression<Func<T, bool>> criteria, Expression<Func<T, object>>[] lazyInclude)

public virtual T First(Expression<Func<T, bool>> predicate)

public virtual T First(Expression<Func<T, bool>> predicate, Expression<Func<T, object>>[] lazyInclude)

public virtual Task<T> FirstAsync(Expression<Func<T, bool>> predicate)

public virtual Task<T> FirstAsync(Expression<Func<T, bool>> predicate, Expression<Func<T, object>>[] lazyInclude)

public virtual IEnumerable<T> Get(Expression<Func<T, string>> orderBy, int pageIndex, int pageSize, SortOrder sortOrder = 0)

public virtual IEnumerable<T> Get(Expression<Func<T, bool>> predicate, Expression<Func<T, string>> orderBy, int pageIndex, int pageSize, SortOrder sortOrder = 0)

public IQueryable<T> GetAll()

public IQueryable<T> GetAll(string lazyIncludeStrings)

public IQueryable<T> GetAll(Func<DbSet<T>, IQueryable<T>> lazySetupAction)

public IQueryable<T> GetAll(Expression<Func<T, object>>[] lazyInclude)

public virtual IEnumerable<T> GetAllReadOnly()

public virtual IList<T> GetAllReadOnlyList()

public virtual Task<IList<T>> GetAllReadOnlyListAsync()

public IQueryable<T> GetBy(Func<T, bool> predicate)

public IQueryable<T> GetBy(Func<T, bool> predicate, Expression<Func<T, object>>[] lazyInclude)

public IQueryable<T> GetByExp(Expression<Func<T, bool>> predicate)

public IQueryable<T> GetByExp(Expression<Func<T, bool>> predicate, string lazyIncludeString)

public IQueryable<T> GetByExp(Expression<Func<T, bool>> predicate, Expression<Func<T, object>>[] lazyInclude)

public virtual T GetById(object id)

public virtual T GetById(object[] ids)

public virtual Task<T> GetByIdAsync(object[] ids)

public virtual IQueryable<T> GetReadOnly()

public void Remove(T item)

public bool Remove(T entity, ICacheManager cacheManager, bool commitUnitOfWork = true, string[] removePatterns)

public Task<bool> RemoveAsync(T entity, ICacheManager cacheManager, bool commitUnitOfWork = true, string[] removePatterns)

public void RemoveRange(IEnumerable<T> item)

public bool RemoveRange(IEnumerable<T> entity, ICacheManager cacheManager, bool commitUnitOfWork = true, string[] removePatterns)

public Task<bool> RemoveRangeAsync(IEnumerable<T> entity, ICacheManager cacheManager, bool commitUnitOfWork = true, string[] removePatterns)

public virtual T Single(Expression<Func<T, bool>> criteria)

public virtual Task<T> SingleAsync(Expression<Func<T, bool>> criteria)

public virtual void Update(T entity)

public virtual void Update(T entity, bool includeParameterOnly, Expression<Func<T, object>>[] lazyExclude)

public bool Update(T entity, ICacheManager cacheManager, Action<T> advanceAction = null, Action<T> defferAction = null, bool commitUnitOfWork = true, string[] removePatterns)

public Task<bool> UpdateAsync(T entity, ICacheManager cacheManager, Action<T> advanceAction = null, Action<T> defferAction = null, bool commitUnitOfWork = true, string[] removePatterns)

public void UpdateRange(IEnumerable<T> obj)

public void UpdateRange(IEnumerable<T> obj, bool includeParameterOnly, Expression<Func<T, object>>[] lazyProperties)

public bool UpdateRange(IEnumerable<T> entity, ICacheManager cacheManager, Action<T> advanceAction = null, Action<T> defferAction = null, bool commitUnitOfWork = true, string[] removePatterns)

public Task<bool> UpdateRangeAsync(IEnumerable<T> entity, ICacheManager cacheManager, Action<T> advanceAction = null, Action<T> defferAction = null, bool commitUnitOfWork = true, string[] removePatterns)