コード例 #1
0
        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)));
        }
コード例 #2
0
        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)));
        }
コード例 #3
0
        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)));
        }
コード例 #4
0
        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));
        }
コード例 #5
0
        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));
        }
コード例 #6
0
        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));
        }
コード例 #7
0
 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)));
 }
コード例 #8
0
 public T GetEntity <T>(IQueryStrategy queryStrategy, bool throwExceptionIfZeroOrManyFound, object additionalQueryData = null) where T : class
 {
     return(QueryRepository.GetEntity <T>(queryStrategy, throwExceptionIfZeroOrManyFound, additionalQueryData));
 }
コード例 #9
0
        public async Task <T> GetEntityAsync <T>(params IQueryStrategy[] queryStrategies) where T : class
        {
            Check.NotNull(queryStrategies, "queryStrategies");

            return(await Task.Run(() => QueryRepository.GetEntity <T>(queryStrategies)));
        }
コード例 #10
0
        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)));
        }
コード例 #11
0
        public T GetEntity <T>(params IQueryStrategy[] queryStrategies) where T : class
        {
            Check.NotNull(queryStrategies, "queryStrategies");

            return(QueryRepository.GetEntity <T>(queryStrategies));
        }
コード例 #12
0
        public T GetEntity <T>(params Expression <Func <T, bool> >[] predicates) where T : class
        {
            Check.NotNull(predicates, "predicates");

            return(QueryRepository.GetEntity(predicates));
        }