语言

PropertyExtensions.GetKeyValueComparer(IProperty) 方法

定义

获取要 ValueComparer 与此属性的键一起使用,或者 null 如果未设置任何键。

public static Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer GetKeyValueComparer(this Microsoft.EntityFrameworkCore.Metadata.IProperty property);
static member GetKeyValueComparer : Microsoft.EntityFrameworkCore.Metadata.IProperty -> Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer
<Extension()>
Public Function GetKeyValueComparer (property As IProperty) As ValueComparer

参数

property
IProperty

属性。

返回

比较器,或者 null 如果未设置任何比较器。

适用于