Share via


RelationalEntityTypeExtensions.SetSqlQuery Metodo

Definizione

Overload

SetSqlQuery(IMutableEntityType, String)

Imposta la stringa SQL usata per fornire dati per il tipo di entità.

SetSqlQuery(IConventionEntityType, String, Boolean)

Imposta la stringa SQL usata per fornire dati per il tipo di entità.

SetSqlQuery(IMutableEntityType, String)

Imposta la stringa SQL usata per fornire dati per il tipo di entità.

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

Parametri

entityType
IMutableEntityType

Tipo di entità.

name
String

Stringa SQL da impostare.

Si applica a

SetSqlQuery(IConventionEntityType, String, Boolean)

Imposta la stringa SQL usata per fornire dati per il tipo di entità.

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

Parametri

entityType
IConventionEntityType

Tipo di entità.

name
String

Stringa SQL da impostare.

fromDataAnnotation
Boolean

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

Restituisce

Il valore configurato.

Si applica a