public static void MissingSchemaWarning( [NotNull] this IDiagnosticsLogger <DbLoggerCategory.Scaffolding> diagnostics, [CanBeNull] string schemaName) { var definition = NpgsqlResources.LogMissingSchema(diagnostics); if (diagnostics.ShouldLog(definition)) { definition.Log(diagnostics, schemaName); } // No DiagnosticsSource events because these are purely design-time messages }
public static void MissingSchemaWarning( [NotNull] this IDiagnosticsLogger <DbLoggerCategory.Scaffolding> diagnostics, [CanBeNull] string schemaName) { var definition = NpgsqlResources.LogMissingSchema(diagnostics); var warningBehavior = definition.GetLogBehavior(diagnostics); if (warningBehavior != WarningBehavior.Ignore) { definition.Log( diagnostics, warningBehavior, schemaName); } // No DiagnosticsSource events because these are purely design-time messages }