Sdílet prostřednictvím


RelationalEntityTypeExtensions.SetSqlQuery Metoda

Definice

Přetížení

SetSqlQuery(IMutableEntityType, String)

Nastaví řetězec SQL použitý k poskytnutí dat pro typ entity.

SetSqlQuery(IConventionEntityType, String, Boolean)

Nastaví řetězec SQL použitý k poskytnutí dat pro typ entity.

SetSqlQuery(IMutableEntityType, String)

Nastaví řetězec SQL použitý k poskytnutí dat pro typ entity.

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)

Parametry

entityType
IMutableEntityType

Typ entity.

name
String

Řetězec SQL, který se má nastavit.

Platí pro

SetSqlQuery(IConventionEntityType, String, Boolean)

Nastaví řetězec SQL použitý k poskytnutí dat pro typ entity.

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

Parametry

entityType
IConventionEntityType

Typ entity.

name
String

Řetězec SQL, který se má nastavit.

fromDataAnnotation
Boolean

Určuje, zda byla konfigurace zadána pomocí datové poznámky.

Návraty

Nakonfigurovaná hodnota.

Platí pro