MutableEntityTypeExtensions.SetDiscriminatorProperty Метод

Определение

Задает объект , IProperty который будет использоваться для хранения дискриминатора.

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)

Параметры

entityType
IMutableEntityType

Тип сущности.

property
IProperty

Задаваемое свойство.

Применяется к