Sprache

IConventionAnnotatableBuilder.HasNoAnnotation(String, Boolean) Methode

Definition

Entfernt die Anmerkung mit dem angegebenen Namen aus diesem Objekt.

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

Parameter

name
String

Der Name der zu entfernenden Anmerkung.

fromDataAnnotation
Boolean

Gibt an, ob die Konfiguration mithilfe einer Datenanmerkung angegeben wurde.

Gibt zurück

Eine IConventionAnnotatableBuilder Weitere Konfiguration, wenn die Anmerkung festgelegt wurde, null andernfalls.

Gilt für: