MutablePropertyExtensions.SetValueComparer 方法

定义

设置此属性的自定义 ValueComparer

public static void SetValueComparer (this Microsoft.EntityFrameworkCore.Metadata.IMutableProperty property, Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer comparer);
static member SetValueComparer : Microsoft.EntityFrameworkCore.Metadata.IMutableProperty * Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer -> unit
<Extension()>
Public Sub SetValueComparer (property As IMutableProperty, comparer As ValueComparer)

参数

property
IMutableProperty

属性。

comparer
ValueComparer

比较器,或者 null 删除任何以前设置的比较器。

适用于