CosmosEntityTypeExtensions.SetContainer Methode

Definition

Überlädt

SetContainer(IConventionEntityType, String, Boolean)

Legt den Namen des Containers fest, dem der Entitätstyp zugeordnet ist.

SetContainer(IMutableEntityType, String)

Legt den Namen des Containers fest, dem der Entitätstyp zugeordnet ist.

SetContainer(IConventionEntityType, String, Boolean)

Legt den Namen des Containers fest, dem der Entitätstyp zugeordnet ist.

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

Parameter

entityType
IConventionEntityType

Der Entitätstyp, für den der Containername festgelegt werden soll.

name
String

Der Name, der festgelegt werden soll.

fromDataAnnotation
Boolean

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

Gibt zurück

Gilt für:

SetContainer(IMutableEntityType, String)

Legt den Namen des Containers fest, dem der Entitätstyp zugeordnet ist.

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

Parameter

entityType
IMutableEntityType

Der Entitätstyp, für den der Containername festgelegt werden soll.

name
String

Der Name, der festgelegt werden soll.

Gilt für: