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 否則就不行。
實作
- 屬性