ConventionModelExtensions.AddIgnored(IConventionModel, Type, Boolean) Methode

Definition

Markiert den angegebenen Entitätstyp als ignoriert.

public static void AddIgnored (this Microsoft.EntityFrameworkCore.Metadata.IConventionModel model, Type clrType, bool fromDataAnnotation = false);
public static string AddIgnored (this Microsoft.EntityFrameworkCore.Metadata.IConventionModel model, Type type, bool fromDataAnnotation = false);
static member AddIgnored : Microsoft.EntityFrameworkCore.Metadata.IConventionModel * Type * bool -> unit
static member AddIgnored : Microsoft.EntityFrameworkCore.Metadata.IConventionModel * Type * bool -> string
<Extension()>
Public Sub AddIgnored (model As IConventionModel, clrType As Type, Optional fromDataAnnotation As Boolean = false)
<Extension()>
Public Function AddIgnored (model As IConventionModel, type As Type, Optional fromDataAnnotation As Boolean = false) As String

Parameter

model
IConventionModel

Das Modell, dem der ignorierte Typ hinzugefügt werden soll.

clrTypetype
Type

Der zu ignorierende Entitätstyp.

fromDataAnnotation
Boolean

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

Gibt zurück

Der Name des ignorierten Entitätstyps.

Gilt für: