MutableEntityTypeExtensions.SetDiscriminatorProperty Method

Definition

Sets the IProperty that will be used for storing a discriminator value.

public static void SetDiscriminatorProperty (this Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType entityType, Microsoft.EntityFrameworkCore.Metadata.IProperty property);
static member SetDiscriminatorProperty : Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType * Microsoft.EntityFrameworkCore.Metadata.IProperty -> unit
<Extension()>
Public Sub SetDiscriminatorProperty (entityType As IMutableEntityType, property As IProperty)

Parameters

entityType
IMutableEntityType

The entity type.

property
IProperty

The property to set.

Applies to