Aracılığıyla paylaş


ConventionEntityTypeExtensions.SetDiscriminatorProperty Yöntem

Tanım

IProperty Ayrımcı değeri depolamak için kullanılacak öğesini ayarlar.

public static void SetDiscriminatorProperty (this Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType entityType, Microsoft.EntityFrameworkCore.Metadata.IProperty property, bool fromDataAnnotation = false);
public static Microsoft.EntityFrameworkCore.Metadata.IConventionProperty SetDiscriminatorProperty (this Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType entityType, Microsoft.EntityFrameworkCore.Metadata.IProperty property, bool fromDataAnnotation = false);
static member SetDiscriminatorProperty : Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType * Microsoft.EntityFrameworkCore.Metadata.IProperty * bool -> unit
static member SetDiscriminatorProperty : Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType * Microsoft.EntityFrameworkCore.Metadata.IProperty * bool -> Microsoft.EntityFrameworkCore.Metadata.IConventionProperty
<Extension()>
Public Sub SetDiscriminatorProperty (entityType As IConventionEntityType, property As IProperty, Optional fromDataAnnotation As Boolean = false)
<Extension()>
Public Function SetDiscriminatorProperty (entityType As IConventionEntityType, property As IProperty, Optional fromDataAnnotation As Boolean = false) As IConventionProperty

Parametreler

entityType
IConventionEntityType

Varlık türü.

property
IProperty

Ayarlanacak özellik.

fromDataAnnotation
Boolean

Yapılandırmanın bir veri ek açıklaması kullanılarak belirtilip belirtilmediğinden emin olun.

Döndürülenler

Ayrımcı özelliği.

Şunlara uygulanır