Aracılığıyla paylaş


IConventionEntityType.HasBaseType(IConventionEntityType, Boolean) Yöntem

Tanım

Dikkat

Use SetBaseType

Bu varlık türünün temel türünü ayarlar. Bu devralma hiyerarşisinde türetilmiş bir tür değilse döndürür null .

public void HasBaseType (Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType entityType, bool fromDataAnnotation = false);
[System.Obsolete("Use SetBaseType")]
public virtual void HasBaseType (Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType entityType, bool fromDataAnnotation = false);
[System.Obsolete("Use SetBaseType")]
public virtual void HasBaseType (Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType? entityType, bool fromDataAnnotation = false);
abstract member HasBaseType : Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType * bool -> unit
[<System.Obsolete("Use SetBaseType")>]
abstract member HasBaseType : Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType * bool -> unit
override this.HasBaseType : Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType * bool -> unit
Public Sub HasBaseType (entityType As IConventionEntityType, Optional fromDataAnnotation As Boolean = false)
Public Overridable Sub HasBaseType (entityType As IConventionEntityType, Optional fromDataAnnotation As Boolean = false)

Parametreler

entityType
IConventionEntityType

Temel varlık türü.

fromDataAnnotation
Boolean

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

Öznitelikler

Şunlara uygulanır