語言

IConventionAnnotatableBuilder.HasNoAnnotation(String, Boolean) 方法

定義

移除這個物件中帶有名字的註解。

public Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionAnnotatableBuilder? HasNoAnnotation(string name, bool fromDataAnnotation = false);
public Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionAnnotatableBuilder HasNoAnnotation(string name, bool fromDataAnnotation = false);
abstract member HasNoAnnotation : string * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionAnnotatableBuilder
Public Function HasNoAnnotation (name As String, Optional fromDataAnnotation As Boolean = false) As IConventionAnnotatableBuilder

參數

name
String

要移除的註解名稱。

fromDataAnnotation
Boolean

表示配置是否以資料註解方式指定。

傳回

IConventionAnnotatableBuilder An 若標註已設定null,則繼續設定;否則。

適用於