IConventionEntityType.HasBaseType(IConventionEntityType, Boolean) 方法

定義

警告

Use SetBaseType

設定此實體類型的基底類型。 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)

參數

entityType
IConventionEntityType

基底實體類型。

fromDataAnnotation
Boolean

指出是否已使用資料批註指定組態。

屬性

適用於