public static void ColumnFound( [NotNull] this IDiagnosticsLogger <DbLoggerCategory.Scaffolding> diagnostics, [NotNull] string tableName, [NotNull] string columnName, [NotNull] string dataTypeName, bool nullable, bool identity, [CanBeNull] string defaultValue, [CanBeNull] string computedValue) { var definition = NpgsqlResources.LogFoundColumn(diagnostics); if (diagnostics.ShouldLog(definition)) { definition.Log( diagnostics, l => l.LogDebug( definition.EventId, null, definition.MessageFormat, tableName, columnName, dataTypeName, nullable, identity, defaultValue, computedValue)); } // No DiagnosticsSource events because these are purely design-time messages }
/// <summary> /// This API supports the Entity Framework Core infrastructure and is not intended to be used /// directly from your code. This API may change or be removed in future releases. /// </summary> public static void ColumnFound( [NotNull] this IDiagnosticsLogger <DbLoggerCategory.Scaffolding> diagnostics, [NotNull] string tableName, [NotNull] string columnName, [NotNull] string dataTypeName, bool nullable, [CanBeNull] string defaultValue) { var definition = NpgsqlResources.LogFoundColumn(diagnostics); var warningBehavior = definition.GetLogBehavior(diagnostics); if (warningBehavior != WarningBehavior.Ignore) { definition.Log( diagnostics, warningBehavior, tableName, columnName, dataTypeName, nullable, defaultValue); } // No DiagnosticsSource events because these are purely design-time messages }