public async Task <T> GetEntityAsync <T>(IQueryStrategy queryStrategy, IQueryStrategy queryStrategy2, bool throwExceptionIfZeroOrManyFound) where T : class { Check.NotNull(queryStrategy, "queryStrategy"); Check.NotNull(queryStrategy2, "queryStrategy2"); return(await Task.Run(() => QueryRepository.GetEntity <T>(queryStrategy, queryStrategy2, throwExceptionIfZeroOrManyFound))); }
public async Task <T> GetEntityAsync <T>(Expression <Func <T, bool> > predicate, IQueryStrategy queryStrategy, bool throwExceptionIfZeroOrManyFound) where T : class { Check.NotNull(predicate, "predicate"); Check.NotNull(queryStrategy, "queryStrategy"); return(await Task.Run(() => QueryRepository.GetEntity <T>(predicate, queryStrategy, throwExceptionIfZeroOrManyFound))); }
public async Task <T> GetEntityAsync <T>(Expression <Func <T, bool> > predicate, params IQueryStrategy[] queryStrategies) where T : class { Check.NotNull(predicate, "predicate"); Check.NotNull(queryStrategies, "queryStrategies"); return(await Task.Run(() => QueryRepository.GetEntity <T>(predicate, queryStrategies))); }
public T GetEntity <T>(IQueryStrategy queryStrategy, IQueryStrategy queryStrategy2, bool throwExceptionIfZeroOrManyFound) where T : class { Check.NotNull(queryStrategy, "queryStrategy"); Check.NotNull(queryStrategy2, "queryStrategy2"); return(QueryRepository.GetEntity <T>(queryStrategy, queryStrategy2, throwExceptionIfZeroOrManyFound)); }
public T GetEntity <T>(Expression <Func <T, bool> > predicate, params IQueryStrategy[] queryStrategies) where T : class { Check.NotNull(predicate, "predicate"); Check.NotNull(queryStrategies, "queryStrategies"); return(QueryRepository.GetEntity <T>(predicate, queryStrategies)); }
public T GetEntity <T>(Expression <Func <T, bool> > predicate, IQueryStrategy queryStrategy, IQueryStrategy queryStrategy2, bool throwExceptionIfZeroOrManyFound) where T : class { Check.NotNull(predicate, "predicate"); Check.NotNull(queryStrategy, "queryStrategy"); Check.NotNull(queryStrategy2, "queryStrategy2"); return(QueryRepository.GetEntity <T>(predicate, queryStrategy, queryStrategy2, throwExceptionIfZeroOrManyFound)); }
public async Task <T> GetEntityAsync <T>(IQueryStrategy queryStrategy, bool throwExceptionIfZeroOrManyFound, object additionalQueryData = null) where T : class { return(await Task.Run(() => QueryRepository.GetEntity <T>(queryStrategy, throwExceptionIfZeroOrManyFound, additionalQueryData))); }
public T GetEntity <T>(IQueryStrategy queryStrategy, bool throwExceptionIfZeroOrManyFound, object additionalQueryData = null) where T : class { return(QueryRepository.GetEntity <T>(queryStrategy, throwExceptionIfZeroOrManyFound, additionalQueryData)); }
public async Task <T> GetEntityAsync <T>(params IQueryStrategy[] queryStrategies) where T : class { Check.NotNull(queryStrategies, "queryStrategies"); return(await Task.Run(() => QueryRepository.GetEntity <T>(queryStrategies))); }
public async Task <T> GetEntityAsync <T>(params Expression <Func <T, bool> >[] predicates) where T : class { Check.NotNull(predicates, "predicates"); return(await Task.Run(() => QueryRepository.GetEntity <T>(predicates))); }
public T GetEntity <T>(params IQueryStrategy[] queryStrategies) where T : class { Check.NotNull(queryStrategies, "queryStrategies"); return(QueryRepository.GetEntity <T>(queryStrategies)); }
public T GetEntity <T>(params Expression <Func <T, bool> >[] predicates) where T : class { Check.NotNull(predicates, "predicates"); return(QueryRepository.GetEntity(predicates)); }