コード例 #1
0
 public ProjectionExpression(
     Type type,
     ItemProjectorExpression itemProjectorExpression,
     Dictionary <Parameter <Tuple>, Tuple> tupleParameterBindings,
     ResultAccessMethod resultAccessMethod)
     : base(ExtendedExpressionType.Projection, type)
 {
     ItemProjector          = itemProjectorExpression;
     ResultAccessMethod     = resultAccessMethod;
     TupleParameterBindings = new Dictionary <Parameter <Tuple>, Tuple>(tupleParameterBindings);
 }
コード例 #2
0
 /// <summary>
 /// Initializes a new instance of this class.
 /// </summary>
 /// <param name="dataSource">The data source.</param>
 /// <param name="materializer">The materializer.</param>
 /// <param name="resultAccessMethod">The value describing how it is supposed to access query result.</param>
 /// <param name="tupleParameterBindings">The tuple parameter bindings.</param>
 /// <param name="tupleParameters">The tuple parameters.</param>
 public TranslatedQuery(ExecutableProvider dataSource,
                        Materializer materializer,
                        ResultAccessMethod resultAccessMethod,
                        Dictionary <Parameter <Tuple>, Tuple> tupleParameterBindings, IEnumerable <Parameter <Tuple> > tupleParameters)
 {
     DataSource             = dataSource;
     Materializer           = materializer;
     ResultAccessMethod     = resultAccessMethod;
     TupleParameterBindings = new Dictionary <Parameter <Tuple>, Tuple>(tupleParameterBindings);
     TupleParameters        = tupleParameters.ToList();
 }
コード例 #3
0
        // Constructors

        /// <summary>
        /// Initializes a new instance of this class.
        /// </summary>
        /// <param name="dataSource">The data source.</param>
        /// <param name="materializer">The materializer.</param>
        /// <param name="resultAccessMethod">The value describing how it is supposed to access query result.</param>
        public TranslatedQuery(ExecutableProvider dataSource, Materializer materializer, ResultAccessMethod resultAccessMethod)
            : this(dataSource, materializer, resultAccessMethod, new Dictionary <Parameter <Tuple>, Tuple>(), Enumerable.Empty <Parameter <Tuple> >())
        {
        }
コード例 #4
0
        // Constructors

        /// <summary>
        /// Initializes a new instance of this class.
        /// </summary>
        /// <param name="session">The session.</param>
        /// <param name="translatedQuery">The translated query.</param>
        /// <param name="parameterContext">The parameter context.</param>
        internal DelayedScalarQuery(Session session, TranslatedQuery translatedQuery, ParameterContext parameterContext)
            : base(session, translatedQuery, parameterContext)
        {
            resultAccessMethod = translatedQuery.ResultAccessMethod;
        }