Share via


CoreStrings.WarningAsErrorTemplate(Object, Object, Object) Method

Definition

An error was generated for warning '{eventName}': {message} This exception can be suppressed or logged by passing event ID '{eventId}' to the 'ConfigureWarnings' method in 'DbContext.OnConfiguring' or 'AddDbContext'.

public static string WarningAsErrorTemplate (object eventName, object message, object eventId);
public static string WarningAsErrorTemplate (object? eventName, object? message, object? eventId);
static member WarningAsErrorTemplate : obj * obj * obj -> string
Public Shared Function WarningAsErrorTemplate (eventName As Object, message As Object, eventId As Object) As String

Parameters

eventName
Object
message
Object
eventId
Object

Returns

Applies to