コード例 #1
0
 public TResult With <TCriterion>(TCriterion criterion)
     where TCriterion : ICriterion
 {
     return(_factory.Create <TCriterion, TResult>().Ask(criterion));
 }
コード例 #2
0
 public void Execute <TCommandContext>(TCommandContext commandContext)
 {
     _commandFactory.Create <TCommandContext>().Execute(commandContext);
 }
コード例 #3
0
 public TResult Execute <TCriterion>(TCriterion criterion)
     where TCriterion : class, ICriterion
 {
     return(_queryFactory.Create <TCriterion, TResult>().Execute(criterion));
 }
コード例 #4
0
 public IQuery Create(string wiql, bool dayPrecision = false)
 {
     CreateCallCount++;
     _queries.Add(wiql);
     return(_delegate.Create(wiql, dayPrecision));
 }
コード例 #5
0
 public async Task <TResult> WithAsync <TCriterion>(TCriterion criterion)
     where TCriterion : ICriterion
 {
     return(await _factory.Create <TCriterion, TResult>().AskAsync(criterion));
 }
コード例 #6
0
 public TResult SingleOrDefault()
 {
     return(_queryFactory.Create <TCriteria, TResult>().Execute(_criteria));
 }
コード例 #7
0
 protected override IQueryProvider <v_syscompany, string> Query(IQueryFactory queryFactory)
 => queryFactory.Create <BackOption, v_syscompany, string>(px => px.scy_ccompanyid, px => new { px.scy_ccompanyid, px.scy_ccompanyname });
コード例 #8
0
 public BrowsingItemModel ArticleById(int id) => _queryFactory.Create <ByIdQuery <Article> >().Execute <BrowsingItemModel>(id);
コード例 #9
0
 public TResult SingleOrDefault()
 {
     return(_queryFactory.Create <TResult>().Execute());
 }
コード例 #10
0
 public T With <TCriterion>(TCriterion criterion) where TCriterion : ICriterion
 {
     return(queryFactory.Create <T, TCriterion>().Ask(criterion));
 }
コード例 #11
0
        private IEnumerable <Dependents> GetEmployeesDependents(int employeeID)
        {
            var getEmployeeDependentsQuery = queryFactory.Create <GetDepedentsForEmployeeQuery>();

            return(getEmployeeDependentsQuery.Execute(employeeID));
        }
コード例 #12
0
 public IEnumerable <RentPoint> GetAllRentPoint()
 {
     return(_queryFactory.Create <GetAllEntitiesCriterion, IEnumerable <RentPoint> >()
            .Ask(new GetAllEntitiesCriterion()));
 }
コード例 #13
0
 public List <CaseModel> CasesByPerson(string personId) =>
 _queryFactory.Create <CasesByPersonQuery>()
 .Execute <Case>(personId)
 .ProjectTo <CaseModel>()
 .ToList();
コード例 #14
0
 protected override IQueryProvider <v_userinfo, int> Query(IQueryFactory queryFactory)
 => queryFactory.Create <WorkOption, v_userinfo, int>(qkey => qkey.uid, order => new { order.uid, order.name });