다음을 통해 공유


MutablePropertyExtensions.SetKeyValueComparer 메서드

정의

주의

Use SetValueComparer. Only a single value comparer is allowed for a given property.

키 비교를 수행할 때 이 속성에 대한 사용자 지정 ValueComparer 을 설정합니다.

public static void SetKeyValueComparer (this Microsoft.EntityFrameworkCore.Metadata.IMutableProperty property, Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer comparer);
[System.Obsolete("Use SetValueComparer. Only a single value comparer is allowed for a given property.")]
public static void SetKeyValueComparer (this Microsoft.EntityFrameworkCore.Metadata.IMutableProperty property, Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer comparer);
[System.Obsolete("Use SetValueComparer. Only a single value comparer is allowed for a given property.")]
public static void SetKeyValueComparer (this Microsoft.EntityFrameworkCore.Metadata.IMutableProperty property, Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer? comparer);
static member SetKeyValueComparer : Microsoft.EntityFrameworkCore.Metadata.IMutableProperty * Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer -> unit
[<System.Obsolete("Use SetValueComparer. Only a single value comparer is allowed for a given property.")>]
static member SetKeyValueComparer : Microsoft.EntityFrameworkCore.Metadata.IMutableProperty * Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer -> unit
<Extension()>
Public Sub SetKeyValueComparer (property As IMutableProperty, comparer As ValueComparer)

매개 변수

property
IMutableProperty

속성입니다.

comparer
ValueComparer

비교자 또는 null 이전에 설정된 비교자를 제거합니다.

특성

적용 대상