/// <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 static void SchemaConfiguredWarning( [NotNull] this IDiagnosticsLogger <DbLoggerCategory.Model.Validation> diagnostics, [NotNull] IEntityType entityType, [NotNull] string schema) { var definition = TaosResources.LogSchemaConfigured(diagnostics); if (definition.WarningBehavior != WarningBehavior.Ignore) { definition.Log( diagnostics, entityType.DisplayName(), schema); } if (diagnostics.DiagnosticSource.IsEnabled(definition.EventId.Name)) { diagnostics.DiagnosticSource.Write( definition.EventId.Name, new EntityTypeSchemaEventData( definition, SchemaConfiguredWarning, entityType, schema)); } }
/// <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 static void SequenceConfiguredWarning( [NotNull] this IDiagnosticsLogger <DbLoggerCategory.Model.Validation> diagnostics, [NotNull] ISequence sequence) { var definition = TaosResources.LogSequenceConfigured(diagnostics); var warningBehavior = definition.GetLogBehavior(diagnostics); if (warningBehavior != WarningBehavior.Ignore) { definition.Log( diagnostics, warningBehavior, sequence.Name); } if (diagnostics.DiagnosticSource.IsEnabled(definition.EventId.Name)) { diagnostics.DiagnosticSource.Write( definition.EventId.Name, new SequenceEventData( definition, SequenceConfiguredWarning, sequence)); } }
/// <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 static void SchemasNotSupportedWarning( [NotNull] this IDiagnosticsLogger <DbLoggerCategory.Scaffolding> diagnostics) { var definition = TaosResources.LogUsingSchemaSelectionsWarning(diagnostics); var warningBehavior = definition.WarningBehavior; if (warningBehavior != WarningBehavior.Ignore) { definition.Log(diagnostics); } // No DiagnosticsSource events because these are purely design-time messages }
/// <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 static void MissingTableWarning( [NotNull] this IDiagnosticsLogger <DbLoggerCategory.Scaffolding> diagnostics, [CanBeNull] string tableName) { var definition = TaosResources.LogMissingTable(diagnostics); if (definition.WarningBehavior != WarningBehavior.Ignore) { definition.Log( diagnostics, tableName); } // No DiagnosticsSource events because these are purely design-time messages }
/// <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 static void ForeignKeyReferencesMissingTableWarning( [NotNull] this IDiagnosticsLogger <DbLoggerCategory.Scaffolding> diagnostics, [CanBeNull] string foreignKeyName) { var definition = TaosResources.LogForeignKeyScaffoldErrorPrincipalTableNotFound(diagnostics); if (definition.WarningBehavior != WarningBehavior.Ignore) { definition.Log( diagnostics, foreignKeyName); } // No DiagnosticsSource events because these are purely design-time messages }
/// <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 static void IndexFound( [NotNull] this IDiagnosticsLogger <DbLoggerCategory.Scaffolding> diagnostics, [CanBeNull] string indexName, [CanBeNull] string tableName, bool?unique) { var definition = TaosResources.LogFoundIndex(diagnostics); if (definition.WarningBehavior != WarningBehavior.Ignore) { definition.Log( diagnostics, indexName, tableName, unique); } // No DiagnosticsSource events because these are purely design-time messages }
/// <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 static void ForeignKeyFound( [NotNull] this IDiagnosticsLogger <DbLoggerCategory.Scaffolding> diagnostics, [CanBeNull] string tableName, long id, [CanBeNull] string principalTableName, [CanBeNull] string deleteAction) { var definition = TaosResources.LogFoundForeignKey(diagnostics); if (definition.WarningBehavior != WarningBehavior.Ignore) { definition.Log( diagnostics, tableName, id, principalTableName, deleteAction); } // No DiagnosticsSource events because these are purely design-time messages }
/// <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 static void ColumnFound( [NotNull] this IDiagnosticsLogger <DbLoggerCategory.Scaffolding> diagnostics, [CanBeNull] string tableName, [CanBeNull] string columnName, [CanBeNull] string dataTypeName, bool notNull, [CanBeNull] string defaultValue) { var definition = TaosResources.LogFoundColumn(diagnostics); if (definition.WarningBehavior != WarningBehavior.Ignore) { definition.Log( diagnostics, tableName, columnName, dataTypeName, notNull, defaultValue); } // No DiagnosticsSource events because these are purely design-time messages }
/// <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 static void UniqueConstraintFound( [NotNull] this IDiagnosticsLogger <DbLoggerCategory.Scaffolding> diagnostics, [CanBeNull] string uniqueConstraintName, [CanBeNull] string tableName) { var definition = TaosResources.LogFoundUniqueConstraint(diagnostics); var warningBehavior = definition.GetLogBehavior(diagnostics); if (warningBehavior != WarningBehavior.Ignore) { definition.Log( diagnostics, warningBehavior, uniqueConstraintName, tableName); } // No DiagnosticsSource events because these are purely design-time messages }
/// <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 static void ForeignKeyPrincipalColumnMissingWarning( [NotNull] this IDiagnosticsLogger <DbLoggerCategory.Scaffolding> diagnostics, [CanBeNull] string foreignKeyName, [CanBeNull] string tableName, [CanBeNull] string principalColumnName, [CanBeNull] string principalTableName) { var definition = TaosResources.LogPrincipalColumnNotFound(diagnostics); var warningBehavior = definition.GetLogBehavior(diagnostics); if (warningBehavior != WarningBehavior.Ignore) { definition.Log( diagnostics, warningBehavior, foreignKeyName, tableName, principalColumnName, principalTableName); } // No DiagnosticsSource events because these are purely design-time messages }