IMutableEntityType.SetDiscriminatorProperty(IReadOnlyProperty) 方法

定义

IReadOnlyProperty设置将用于存储鉴别器值的 。

public void SetDiscriminatorProperty (Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty? property);
abstract member SetDiscriminatorProperty : Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty -> unit
Public Sub SetDiscriminatorProperty (property As IReadOnlyProperty)

参数

property
IReadOnlyProperty

要设置的属性。

适用于