語言

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 An 若標註已設定null,則繼續設定;否則。

實作

屬性

適用於