AnnotatableBuilder<TMetadata,TModelBuilder>.IConventionAnnotatableBuilder.CanRemoveAnnotation 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
傳回值,指出是否可以使用此組態來源移除具有指定名稱的注釋。
[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
否則為 。
實作
- 屬性