共用方式為


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 移除任何先前設定的比較子。

適用於