共用方式為


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

定義

從這個 物件中移除具有指定名稱的批註。

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

參數

name
String

要移除之批註的名稱。

fromDataAnnotation
Boolean

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

傳回

如果 IConventionAnnotatableBuilder 已設定批註,則為繼續設定的 , null 否則為 。

實作

屬性

適用於