Aracılığıyla paylaş


CosmosEntityTypeExtensions.SetContainer Yöntem

Tanım

Aşırı Yüklemeler

SetContainer(IConventionEntityType, String, Boolean)

Varlık türünün eşlendiği kapsayıcının adını ayarlar.

SetContainer(IMutableEntityType, String)

Varlık türünün eşlendiği kapsayıcının adını ayarlar.

SetContainer(IConventionEntityType, String, Boolean)

Varlık türünün eşlendiği kapsayıcının adını ayarlar.

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

Parametreler

entityType
IConventionEntityType

Kapsayıcı adının ayarlanacağı varlık türü.

name
String

Ayarlanacağı ad.

fromDataAnnotation
Boolean

Yapılandırmanın bir veri ek açıklaması kullanılarak belirtilip belirtilmediğinden emin olun.

Döndürülenler

Şunlara uygulanır

SetContainer(IMutableEntityType, String)

Varlık türünün eşlendiği kapsayıcının adını ayarlar.

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)

Parametreler

entityType
IMutableEntityType

Kapsayıcı adının ayarlanacağı varlık türü.

name
String

Ayarlanacağı ad.

Şunlara uygulanır