共用方式為


AnnotatableBuilder<TMetadata,TModelBuilder>.IConventionAnnotatableBuilder.CanRemoveAnnotation 方法

定義

傳回值,指出是否可以使用此組態來源移除具有指定名稱的注釋。

[System.Diagnostics.DebuggerStepThrough]
bool IConventionAnnotatableBuilder.CanRemoveAnnotation (string name, bool fromDataAnnotation);
[<System.Diagnostics.DebuggerStepThrough>]
abstract member Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionAnnotatableBuilder.CanRemoveAnnotation : string * bool -> bool
override this.Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionAnnotatableBuilder.CanRemoveAnnotation : string * bool -> bool
Function CanRemoveAnnotation (name As String, fromDataAnnotation As Boolean) As Boolean Implements IConventionAnnotatableBuilder.CanRemoveAnnotation

參數

name
String

要移除的批註名稱。

fromDataAnnotation
Boolean

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

傳回

true 如果可以移除批註,則為 , false 否則為 。

實作

屬性

適用於