Condividi tramite


IConventionEntityType.SetDiscriminatorProperty Metodo

Definizione

Imposta l'oggetto IReadOnlyProperty che verrà usato per archiviare un valore discriminatorio.

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

Parametri

property
IReadOnlyProperty

Proprietà da impostare.

fromDataAnnotation
Boolean

Indica se la configurazione è stata specificata usando un'annotazione dati.

Restituisce

Proprietà discriminatoria.

Si applica a