Share via


IConventionEntityType.SetDiscriminatorProperty Methode

Definition

Legt den fest, der IReadOnlyProperty zum Speichern eines Diskriminatorswerts verwendet wird.

public Microsoft.EntityFrameworkCore.Metadata.IConventionProperty? SetDiscriminatorProperty (Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty? property, bool fromDataAnnotation = false);
abstract member SetDiscriminatorProperty : Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty * bool -> Microsoft.EntityFrameworkCore.Metadata.IConventionProperty
Public Function SetDiscriminatorProperty (property As IReadOnlyProperty, Optional fromDataAnnotation As Boolean = false) As IConventionProperty

Parameter

property
IReadOnlyProperty

Die festzulegende Eigenschaft.

fromDataAnnotation
Boolean

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

Gibt zurück

Die Diskriminatoreigenschaft.

Gilt für: