Udostępnij za pośrednictwem


CosmosEntityTypeExtensions.SetContainer Metoda

Definicja

Przeciążenia

SetContainer(IConventionEntityType, String, Boolean)

Ustawia nazwę kontenera, do którego jest mapowany typ jednostki.

SetContainer(IMutableEntityType, String)

Ustawia nazwę kontenera, do którego jest mapowany typ jednostki.

SetContainer(IConventionEntityType, String, Boolean)

Ustawia nazwę kontenera, do którego jest mapowany typ jednostki.

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

Parametry

entityType
IConventionEntityType

Typ jednostki do ustawienia nazwy kontenera.

name
String

Nazwa do ustawienia.

fromDataAnnotation
Boolean

Wskazuje, czy konfiguracja została określona przy użyciu adnotacji danych.

Zwraca

Dotyczy

SetContainer(IMutableEntityType, String)

Ustawia nazwę kontenera, do którego jest mapowany typ jednostki.

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)

Parametry

entityType
IMutableEntityType

Typ jednostki do ustawienia nazwy kontenera.

name
String

Nazwa do ustawienia.

Dotyczy