private static IMtQueryable <T> CriteriaToMtQuery( List <FilterConditionDTO> conditions, IMtQueryable <T> queryable) { var predicateBuilder = new FilterConditionPredicateBuilder <T>(conditions); queryable = queryable.Where(predicateBuilder.ToPredicate()); return(queryable); }
public void Delete(IUnitOfWork uow, string accountId, List <FilterConditionDTO> conditions) { var predicateBuilder = new FilterConditionPredicateBuilder <T>(conditions); uow.MultiTenantObjectRepository.Delete <T>(accountId, predicateBuilder.ToPredicate()); }