Exemple #1
0
        public static IQueryable <TEntity> Apply <TEntity, TId>(this IIncludeExpression <TEntity, TId> expression, IQueryable <TEntity> query)
            where TEntity : class, IEntity <TId>
            where TId : struct
        {
            if (expression.IncludeList == null)
            {
                return(query);
            }

            return(expression.IncludeList.Aggregate(
                       query,
                       (current, include) => current.Include(include.AsPath())
                       ));
        }
Exemple #2
0
 public Task <ThaGet.Cqrs.Domain.Abstractions.IPagination <TResultType> > GetPaginationAsync <TResultType>(ThaGet.Cqrs.Selector.Abstractions.ISelectExpression <TestEntity, TResultType, int> selectExpression, IIncludeExpression <TestEntity, int> includeExpression, IFilterExpression <TestEntity, int> filterExpression, ISortExpression <TestEntity, int> sortExpression, int skip, int take) where TResultType : class
 {
     throw new NotImplementedException();
 }
Exemple #3
0
 public Task <TResult> GetByIdAsync <TResult>(int id, ThaGet.Cqrs.Selector.Abstractions.ISelectExpression <TestEntity, TResult, int> selectExpression, IIncludeExpression <TestEntity, int> includeExpression) where TResult : class
 {
     throw new NotImplementedException();
 }
Exemple #4
0
 public Task <TestEntity> GetByIdAsync(int id, IIncludeExpression <TestEntity, int> includeExpression)
 {
     throw new NotImplementedException();
 }
Exemple #5
0
 public Task <ICollection <TResult> > FindAllByAsync <TResult>(ThaGet.Cqrs.Selector.Abstractions.ISelectExpression <TestEntity, TResult, int> selectExpression, IIncludeExpression <TestEntity, int> includeExpression, IFilterExpression <TestEntity, int> filterExpression, ISortExpression <TestEntity, int> sortExpression) where TResult : class
 {
     throw new NotImplementedException();
 }
Exemple #6
0
 public Task <ICollection <TestEntity> > FindAllByAsync(IIncludeExpression <TestEntity, int> includeExpression, IFilterExpression <TestEntity, int> filterExpression)
 {
     throw new NotImplementedException();
 }