Aracılığıyla paylaş


RelationalEntityTypeExtensions.SetSchema Yöntem

Tanım

Aşırı Yüklemeler

SetSchema(IConventionEntityType, String, Boolean)

Eşlenen tabloyu içeren veritabanı şemasını ayarlar.

SetSchema(IMutableEntityType, String)

Eşlenen tabloyu içeren veritabanı şemasını ayarlar.

SetSchema(IConventionEntityType, String, Boolean)

Eşlenen tabloyu içeren veritabanı şemasını ayarlar.

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

Parametreler

entityType
IConventionEntityType

Şemanın ayarlanacağı varlık türü.

value
String

Ayarlanacak değer.

fromDataAnnotation
Boolean

Yapılandırmanın bir veri ek açıklaması kullanılarak belirtilip belirtilmedidiğini gösterir.

Döndürülenler

Yapılandırılan değer.

Şunlara uygulanır

SetSchema(IMutableEntityType, String)

Eşlenen tabloyu içeren veritabanı şemasını ayarlar.

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

Parametreler

entityType
IMutableEntityType

Şemanın ayarlanacağı varlık türü.

value
String

Ayarlanacak değer.

Şunlara uygulanır