public IQueryHandler <TResult> BuildHandler <TResult>(IMartenSession session, Statement statement,
                                                              Statement currentStatement)
        {
            var selector = (ISelector <T>)BuildSelector(session);

            return(LinqHandlerBuilder.BuildHandler <T, TResult>(selector, statement));
        }
Exemple #2
0
        public Task <TResult> ExecuteAsync <TResult>(Expression expression, CancellationToken token, ResultOperatorBase op)
        {
            var builder = new LinqHandlerBuilder(_session, expression, op);
            var handler = builder.BuildHandler <TResult>(Statistics);

            return(ExecuteHandlerAsync(handler, token));
        }
Exemple #3
0
        public TResult Execute <TResult>(Expression expression, ResultOperatorBase op)
        {
            var builder = new LinqHandlerBuilder(_session, expression, op);
            var handler = builder.BuildHandler <TResult>(Statistics);

            return(ExecuteHandler(handler));
        }
        public IQueryHandler <TResult> BuildHandler <TResult>(IMartenSession session, Statement statement,
                                                              Statement currentStatement)
        {
            var selector = new SerializationSelector <T>(session.Serializer);

            return(LinqHandlerBuilder.BuildHandler <T, TResult>(selector, statement));
        }
        internal IQueryHandler <TResult> BuildHandler <TResult>(ResultOperatorBase op = null)
        {
            var builder = new LinqHandlerBuilder(_session, Expression, op);

            return(builder.BuildHandler <TResult>(Statistics));
        }
Exemple #6
0
 public IQueryHandler <TResult> BuildHandler <TResult>(IMartenSession session, Statement statement,
                                                       Statement currentStatement)
 {
     return(LinqHandlerBuilder.BuildHandler <string, TResult>(this, statement));
 }