AnnotatableBuilder<TMetadata,TModelBuilder>.CanRemoveAnnotation 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
傳回值,指出是否可以使用此組態來源移除具有指定名稱的注釋。
public virtual bool CanRemoveAnnotation (string name, Microsoft.EntityFrameworkCore.Metadata.ConfigurationSource configurationSource);
abstract member CanRemoveAnnotation : string * Microsoft.EntityFrameworkCore.Metadata.ConfigurationSource -> bool
override this.CanRemoveAnnotation : string * Microsoft.EntityFrameworkCore.Metadata.ConfigurationSource -> bool
Public Overridable Function CanRemoveAnnotation (name As String, configurationSource As ConfigurationSource) As Boolean
參數
- name
- String
要移除之批註的名稱。
- configurationSource
- ConfigurationSource
要設定之批註的組態來源。
傳回
true
如果可以移除注釋,則為 , false
否則為 。