/// <summary>
 ///     Creates a new instance of the <see cref="QueryTranslationPostprocessor" /> class.
 /// </summary>
 /// <param name="dependencies">Parameter object containing dependencies for this class.</param>
 /// <param name="queryCompilationContext">The query compilation context object to use.</param>
 public QueryTranslationPostprocessor(
     QueryTranslationPostprocessorDependencies dependencies,
     QueryCompilationContext queryCompilationContext)
 {
     Dependencies            = dependencies;
     QueryCompilationContext = queryCompilationContext;
 }
Exemplo n.º 2
0
 /// <summary>
 ///     Creates a new instance of the <see cref="RelationalQueryTranslationPostprocessor" /> class.
 /// </summary>
 /// <param name="dependencies">Parameter object containing dependencies for this class.</param>
 /// <param name="relationalDependencies">Parameter object containing relational dependencies for this class.</param>
 /// <param name="queryCompilationContext">The query compilation context object to use.</param>
 public RelationalQueryTranslationPostprocessor(
     QueryTranslationPostprocessorDependencies dependencies,
     RelationalQueryTranslationPostprocessorDependencies relationalDependencies,
     QueryCompilationContext queryCompilationContext)
     : base(dependencies, queryCompilationContext)
 {
     RelationalDependencies = relationalDependencies;
     _useRelationalNulls    = RelationalOptionsExtension.Extract(queryCompilationContext.ContextOptions).UseRelationalNulls;
 }
Exemplo n.º 3
0
        /// <summary>
        ///     Creates a new instance of the <see cref="QueryTranslationPostprocessor" /> class.
        /// </summary>
        /// <param name="dependencies"> Parameter object containing dependencies for this class. </param>
        /// <param name="queryCompilationContext"> The query compilation context object to use. </param>
        public QueryTranslationPostprocessor(
            QueryTranslationPostprocessorDependencies dependencies,
            QueryCompilationContext queryCompilationContext)
        {
            Check.NotNull(dependencies, nameof(dependencies));
            Check.NotNull(queryCompilationContext, nameof(queryCompilationContext));

            Dependencies            = dependencies;
            QueryCompilationContext = queryCompilationContext;
        }
Exemplo n.º 4
0
        /// <summary>
        ///     Creates a new instance of the <see cref="RelationalQueryTranslationPostprocessor" /> class.
        /// </summary>
        /// <param name="dependencies"> Parameter object containing dependencies for this class. </param>
        /// <param name="relationalDependencies"> Parameter object containing relational dependencies for this class. </param>
        /// <param name="queryCompilationContext"> The query compilation context object to use. </param>
        public RelationalQueryTranslationPostprocessor(
            [NotNull] QueryTranslationPostprocessorDependencies dependencies,
            [NotNull] RelationalQueryTranslationPostprocessorDependencies relationalDependencies,
            [NotNull] QueryCompilationContext queryCompilationContext)
            : base(dependencies, queryCompilationContext)
        {
            Check.NotNull(relationalDependencies, nameof(relationalDependencies));
            Check.NotNull(queryCompilationContext, nameof(queryCompilationContext));

            RelationalDependencies = relationalDependencies;
        }
 public RelationalQueryTranslationPostprocessor(
     QueryTranslationPostprocessorDependencies dependencies,
     RelationalQueryTranslationPostprocessorDependencies relationalDependencies,
     QueryCompilationContext queryCompilationContext)
     : base(dependencies)
 {
     RelationalDependencies = relationalDependencies;
     UseRelationalNulls     = RelationalOptionsExtension.Extract(queryCompilationContext.ContextOptions).UseRelationalNulls;
     SqlExpressionFactory   = relationalDependencies.SqlExpressionFactory;
     _sqlExpressionOptimizingExpressionVisitor
         = new SqlExpressionOptimizingExpressionVisitor(SqlExpressionFactory, UseRelationalNulls);
 }
Exemplo n.º 6
0
        public RelationalQueryTranslationPostprocessor(
            [NotNull] QueryTranslationPostprocessorDependencies dependencies,
            [NotNull] RelationalQueryTranslationPostprocessorDependencies relationalDependencies,
            [NotNull] QueryCompilationContext queryCompilationContext)
            : base(dependencies, queryCompilationContext)
        {
            Check.NotNull(relationalDependencies, nameof(relationalDependencies));
            Check.NotNull(queryCompilationContext, nameof(queryCompilationContext));

            RelationalDependencies = relationalDependencies;
            _useRelationalNulls    = RelationalOptionsExtension.Extract(queryCompilationContext.ContextOptions).UseRelationalNulls;
        }
Exemplo n.º 7
0
        public RelationalQueryTranslationPostprocessor(
            [NotNull] QueryTranslationPostprocessorDependencies dependencies,
            [NotNull] RelationalQueryTranslationPostprocessorDependencies relationalDependencies,
            [NotNull] QueryCompilationContext queryCompilationContext)
            : base(dependencies)
        {
            Check.NotNull(relationalDependencies, nameof(relationalDependencies));
            Check.NotNull(queryCompilationContext, nameof(queryCompilationContext));

            RelationalDependencies = relationalDependencies;
            UseRelationalNulls     = RelationalOptionsExtension.Extract(queryCompilationContext.ContextOptions).UseRelationalNulls;
            SqlExpressionFactory   = relationalDependencies.SqlExpressionFactory;
            _sqlExpressionOptimizingExpressionVisitor
                = new SqlExpressionOptimizingExpressionVisitor(SqlExpressionFactory, UseRelationalNulls);
        }
 /// <summary>
 /// 构造函数
 /// </summary>
 /// <param name="dependencies"></param>
 /// <param name="relationalDependencies"></param>
 public SqlServer2008QueryTranslationPostprocessorFactory(QueryTranslationPostprocessorDependencies dependencies, RelationalQueryTranslationPostprocessorDependencies relationalDependencies)
 {
     _dependencies           = dependencies;
     _relationalDependencies = relationalDependencies;
 }
 public QueryTranslationPostprocessor(QueryTranslationPostprocessorDependencies dependencies)
 {
     Dependencies = dependencies;
 }
 /// <summary>
 /// 构造函数
 /// </summary>
 /// <param name="dependencies"></param>
 /// <param name="relationalDependencies"></param>
 /// <param name="queryCompilationContext"></param>
 public SqlServer2008QueryTranslationPostprocessor(QueryTranslationPostprocessorDependencies dependencies, RelationalQueryTranslationPostprocessorDependencies relationalDependencies, QueryCompilationContext queryCompilationContext)
     : base(dependencies, relationalDependencies, queryCompilationContext)
 {
 }
Exemplo n.º 11
0
        public QueryTranslationPostprocessor([NotNull] QueryTranslationPostprocessorDependencies dependencies)
        {
            Check.NotNull(dependencies, nameof(dependencies));

            Dependencies = dependencies;
        }