共用方式為


IConventionEntityTypeBuilder.CanRemoveServiceProperty 方法

定義

傳回值,指出是否可以從這個實體類型中移除服務屬性。

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

參數

serviceProperty
IConventionServiceProperty

要移除的服務屬性。

fromDataAnnotation
Boolean

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

傳回

true 如果可以從這個實體類型中移除服務屬性,則為 。

適用於