コード例 #1
0
        /// <summary>
        /// 实例化
        /// </summary>
        /// <param name="dependencies">诊断日志</param>
        /// <param name="relationalDependencies">关系依赖</param>
        /// <param name="logger">日志</param>
        public OracleModelValidator(
            [NotNull] ModelValidatorDependencies dependencies,
            [NotNull] RelationalModelValidatorDependencies relationalDependencies,
            IDiagnosticsLogger <DbLoggerCategory.Model.Validation> logger = null)
            : base(dependencies, relationalDependencies)
        {
            if (Check.IsTraceEnabled(logger?.Logger))
            {
                Trace <DbLoggerCategory.Model.Validation> .Write(logger, LogLevel.Trace, OracleTraceTag.Entry, OracleTraceClassName.OracleModelValidator, OracleTraceFuncName.ctor);
            }

            m_oracleLogger = logger;

            if (Check.IsTraceEnabled(logger?.Logger))
            {
                Trace <DbLoggerCategory.Model.Validation> .Write(logger, LogLevel.Trace, OracleTraceTag.Exit, OracleTraceClassName.OracleModelValidator, OracleTraceFuncName.ctor);
            }
        }
コード例 #2
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 SqliteModelValidator(
     [NotNull] ModelValidatorDependencies dependencies,
     [NotNull] RelationalModelValidatorDependencies relationalDependencies)
     : base(dependencies, relationalDependencies)
 {
 }
コード例 #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 SqlServerModelValidator(
     ModelValidatorDependencies dependencies,
     RelationalModelValidatorDependencies relationalDependencies)
     : base(dependencies, 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 SpannerModelValidator(
     SpannerModelValidationConnectionProvider connectionStringProvider,
     ModelValidatorDependencies dependencies,
     RelationalModelValidatorDependencies relationalDependencies)
     : base(dependencies, relationalDependencies)
     => ConnectionStringProvider = connectionStringProvider;
 public ClickHouseModelValidator(ModelValidatorDependencies dependencies, RelationalModelValidatorDependencies relationalDependencies)
     : base(dependencies, relationalDependencies)
 {
 }
コード例 #6
0
 /// <inheritdoc />
 public NpgsqlModelValidator(
     ModelValidatorDependencies dependencies,
     RelationalModelValidatorDependencies relationalDependencies,
     INpgsqlOptions npgsqlOptions)
     : base(dependencies, relationalDependencies)
     => _postgresVersion = Check.NotNull(npgsqlOptions, nameof(npgsqlOptions)).PostgresVersion;
コード例 #7
0
 /// <inheritdoc />
 public NpgsqlModelValidator(
     ModelValidatorDependencies dependencies,
     RelationalModelValidatorDependencies relationalDependencies,
     INpgsqlSingletonOptions npgsqlSingletonOptions)
     : base(dependencies, relationalDependencies)
     => _postgresVersion = npgsqlSingletonOptions.PostgresVersion;
コード例 #8
0
 public JsonModelValidator(ModelValidatorDependencies dependencies, RelationalModelValidatorDependencies relationalDependencies) : base(dependencies, relationalDependencies)
 {
 }