RelationalEntityTypeExtensions.SetMappingStrategy Methode

Definition

Überlädt

SetMappingStrategy(IConventionEntityType, String, Boolean)

Legt die Zuordnungsstrategie für die abgeleiteten Typen fest.

SetMappingStrategy(IMutableEntityType, String)

Legt die Zuordnungsstrategie für die abgeleiteten Typen fest.

SetMappingStrategy(IConventionEntityType, String, Boolean)

Legt die Zuordnungsstrategie für die abgeleiteten Typen fest.

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

Parameter

entityType
IConventionEntityType

Der Entitätstyp.

strategy
String

Die Zuordnungsstrategie für die abgeleiteten Typen.

fromDataAnnotation
Boolean

Gibt an, ob die Konfiguration mithilfe einer Datenanmerkung angegeben wurde.

Gibt zurück

Der konfigurierte Wert.

Gilt für:

SetMappingStrategy(IMutableEntityType, String)

Legt die Zuordnungsstrategie für die abgeleiteten Typen fest.

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

Parameter

entityType
IMutableEntityType

Der Entitätstyp.

strategy
String

Die Zuordnungsstrategie für die abgeleiteten Typen.

Gilt für: