語言

IConventionModelBuilder.CanRemoveEntity 方法

定義

回傳一個值,指示該實體類型是否能從模型中移除。

public bool CanRemoveEntity(Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType entityType, bool fromDataAnnotation = false);
abstract member CanRemoveEntity : Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType * bool -> bool
Public Function CanRemoveEntity (entityType As IConventionEntityType, Optional fromDataAnnotation As Boolean = false) As Boolean

參數

entityType
IConventionEntityType

要移除的實體類型。

fromDataAnnotation
Boolean

表示配置是否以資料註解方式指定。

傳回

true 如果能從此實體類型中移除導覽。

適用於