語言

IConventionIndexBuilder.HasNoAnnotation(String, Boolean) 方法

定義

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

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

參數

name
String

要移除的註解名稱。

fromDataAnnotation
Boolean

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

傳回

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

適用於