/// <summary>
 ///     This is an internal API that supports the Entity Framework Core infrastructure and not subject to
 ///     the same compatibility standards as public APIs. It may be changed or removed without notice in
 ///     any release. You should only use it directly in your code with extreme caution and knowing that
 ///     doing so can result in application failures when updating to a new Entity Framework Core release.
 /// </summary>
 public RelationalQueryCompilationContextFactory(
     QueryCompilationContextDependencies dependencies,
     RelationalQueryCompilationContextDependencies relationalDependencies)
 {
     Dependencies           = dependencies;
     RelationalDependencies = relationalDependencies;
 }
 /// <summary>
 ///     This is an internal API that supports the Entity Framework Core infrastructure and not subject to
 ///     the same compatibility standards as public APIs. It may be changed or removed without notice in
 ///     any release. You should only use it directly in your code with extreme caution and knowing that
 ///     doing so can result in application failures when updating to a new Entity Framework Core release.
 /// </summary>
 public SqlServerQueryCompilationContext(
     [NotNull] QueryCompilationContextDependencies dependencies,
     [NotNull] RelationalQueryCompilationContextDependencies relationalDependencies,
     bool async,
     bool multipleActiveResultSetsEnabled)
     : base(dependencies, relationalDependencies, async)
 {
     _multipleActiveResultSetsEnabled = multipleActiveResultSetsEnabled;
 }
Beispiel #3
0
 /// <summary>
 ///     This is an internal API that supports the Entity Framework Core infrastructure and not subject to
 ///     the same compatibility standards as public APIs. It may be changed or removed without notice in
 ///     any release. You should only use it directly in your code with extreme caution and knowing that
 ///     doing so can result in application failures when updating to a new Entity Framework Core release.
 /// </summary>
 public SqlServerQueryCompilationContextFactory(
     QueryCompilationContextDependencies dependencies,
     RelationalQueryCompilationContextDependencies relationalDependencies,
     ISqlServerConnection sqlServerConnection)
 {
     Dependencies           = dependencies;
     RelationalDependencies = relationalDependencies;
     _sqlServerConnection   = sqlServerConnection;
 }
Beispiel #4
0
 /// <summary>
 ///     Creates a new instance of the <see cref="RelationalQueryCompilationContext" /> 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="async">A bool value indicating whether it is for async query.</param>
 public RelationalQueryCompilationContext(
     QueryCompilationContextDependencies dependencies,
     RelationalQueryCompilationContextDependencies relationalDependencies,
     bool async)
     : base(dependencies, async)
 {
     RelationalDependencies = relationalDependencies;
     QuerySplittingBehavior = RelationalOptionsExtension.Extract(ContextOptions).QuerySplittingBehavior;
 }
        /// <summary>
        ///     This is an internal API that supports the Entity Framework Core infrastructure and not subject to
        ///     the same compatibility standards as public APIs. It may be changed or removed without notice in
        ///     any release. You should only use it directly in your code with extreme caution and knowing that
        ///     doing so can result in application failures when updating to a new Entity Framework Core release.
        /// </summary>
        public RelationalQueryCompilationContextFactory(
            QueryCompilationContextDependencies dependencies,
            RelationalQueryCompilationContextDependencies relationalDependencies)
        {
            Check.NotNull(dependencies, nameof(dependencies));
            Check.NotNull(relationalDependencies, nameof(relationalDependencies));

            _dependencies           = dependencies;
            _relationalDependencies = relationalDependencies;
        }
        /// <summary>
        ///     This is an internal API that supports the Entity Framework Core infrastructure and not subject to
        ///     the same compatibility standards as public APIs. It may be changed or removed without notice in
        ///     any release. You should only use it directly in your code with extreme caution and knowing that
        ///     doing so can result in application failures when updating to a new Entity Framework Core release.
        /// </summary>
        public SqlServerQueryCompilationContextFactory(
            QueryCompilationContextDependencies dependencies,
            RelationalQueryCompilationContextDependencies relationalDependencies,
            ISqlServerConnection sqlServerConnection)
        {
            Check.NotNull(dependencies, nameof(dependencies));
            Check.NotNull(relationalDependencies, nameof(relationalDependencies));

            _dependencies           = dependencies;
            _relationalDependencies = relationalDependencies;
            _sqlServerConnection    = sqlServerConnection;
        }
Beispiel #7
0
        /// <summary>
        /// 实例化
        /// </summary>
        /// <param name="dependencies">编译上下文依赖</param>
        /// <param name="relationalDependencies">关系编译上下文依赖</param>
        /// <param name="options">选项</param>
        /// <param name="logger">日志</param>
        public OracleQueryCompilationContextFactory(
            [NotNull] QueryCompilationContextDependencies dependencies,
            [NotNull] RelationalQueryCompilationContextDependencies relationalDependencies,
            [NotNull] IOracleOptions options,
            IDiagnosticsLogger <DbLoggerCategory.Query> logger = null)
            : base(dependencies, relationalDependencies)
        {
            if (Check.IsTraceEnabled(logger?.Logger))
            {
                Trace <DbLoggerCategory.Query> .Write(logger, LogLevel.Trace, OracleTraceTag.Entry, OracleTraceClassName.OracleQueryCompilationContextFactory, OracleTraceFuncName.ctor);
            }

            if (options != null && options.OracleSQLCompatibility != null)
            {
                _oracleSQLCompatibility = options.OracleSQLCompatibility;
            }
            m_oracleLogger = logger;

            if (Check.IsTraceEnabled(logger?.Logger))
            {
                Trace <DbLoggerCategory.Query> .Write(m_oracleLogger, LogLevel.Trace, OracleTraceTag.Exit, OracleTraceClassName.OracleQueryCompilationContextFactory, OracleTraceFuncName.ctor);
            }
        }
 public AS400QueryCompilationContextFactory(
     [NotNull] QueryCompilationContextDependencies dependencies,
     [NotNull] RelationalQueryCompilationContextDependencies relationalDependencies)
     : base(dependencies, relationalDependencies)
 {
 }
 /// <summary>
 /// </summary>
 /// <param name="dependencies"></param>
 /// <param name="relationalDependencies"></param>
 public SpannerQueryCompilationContextFactory(
     QueryCompilationContextDependencies dependencies,
     RelationalQueryCompilationContextDependencies relationalDependencies)
     : base(dependencies, relationalDependencies)
 {
 }
 public NpgsqlQueryCompilationContext(
     [NotNull] QueryCompilationContextDependencies dependencies,
     [NotNull] RelationalQueryCompilationContextDependencies relationalDependencies, bool async)
     : base(dependencies, relationalDependencies, async)
 {
 }