Share via


RelationalEntityTypeExtensions.SetViewName Metodo

Definizione

Overload

SetViewName(IMutableEntityType, String)

Imposta il nome della visualizzazione a cui è mappato il tipo di entità.

SetViewName(IConventionEntityType, String, Boolean)

Imposta il nome della visualizzazione a cui è mappato il tipo di entità.

SetViewName(IMutableEntityType, String)

Imposta il nome della visualizzazione a cui è mappato il tipo di entità.

public static void SetViewName (this Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType entityType, string name);
public static void SetViewName (this Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType entityType, string? name);
static member SetViewName : Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType * string -> unit
<Extension()>
Public Sub SetViewName (entityType As IMutableEntityType, name As String)

Parametri

entityType
IMutableEntityType

Tipo di entità per cui impostare il nome della vista.

name
String

Nome da impostare.

Si applica a

SetViewName(IConventionEntityType, String, Boolean)

Imposta il nome della visualizzazione a cui è mappato il tipo di entità.

public static string SetViewName (this Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType entityType, string name, bool fromDataAnnotation = false);
public static string? SetViewName (this Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType entityType, string? name, bool fromDataAnnotation = false);
static member SetViewName : Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType * string * bool -> string
<Extension()>
Public Function SetViewName (entityType As IConventionEntityType, name As String, Optional fromDataAnnotation As Boolean = false) As String

Parametri

entityType
IConventionEntityType

Tipo di entità per cui impostare il nome della vista.

name
String

Nome da impostare.

fromDataAnnotation
Boolean

Indica se la configurazione è stata specificata utilizzando un'annotazione dati.

Restituisce

Il valore configurato.

Si applica a