Language

ValueComparer.CreateDefault メソッド

定義

オーバーロード

Name 説明
CreateDefault(Type, Boolean)

指定した型の既定の ValueComparer<T> を作成します。

CreateDefault<T>(Boolean)

指定した型の既定の ValueComparer<T> を作成します。

CreateDefault(Type, Boolean)

ソース:
ValueComparer.cs
ソース:
ValueComparer.cs
ソース:
ValueComparer.cs
ソース:
ValueComparer.cs
ソース:
ValueComparer.cs
ソース:
ValueComparer.cs
ソース:
ValueComparer.cs

指定した型の既定の ValueComparer<T> を作成します。

public static Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer CreateDefault(Type type, bool favorStructuralComparisons);
[System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Creating a default value comparer for the given type requires calling MakeGenericMethod, which is not compatible with NativeAOT. Use the generic CreateDefault<T> overload instead.")]
public static Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer CreateDefault(Type type, bool favorStructuralComparisons);
static member CreateDefault : Type * bool -> Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer
[<System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Creating a default value comparer for the given type requires calling MakeGenericMethod, which is not compatible with NativeAOT. Use the generic CreateDefault<T> overload instead.")>]
static member CreateDefault : Type * bool -> Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer
Public Shared Function CreateDefault (type As Type, favorStructuralComparisons As Boolean) As ValueComparer

パラメーター

type
Type

型。

favorStructuralComparisons
Boolean

true場合、型によって実装される場合、EF はIStructuralEquatableを使用します。 これは通常、バイト配列がキーとして機能する場合に使用されます。

戻り値

ValueComparer<T>。

属性

適用対象

CreateDefault<T>(Boolean)

ソース:
ValueComparer.cs
ソース:
ValueComparer.cs
ソース:
ValueComparer.cs
ソース:
ValueComparer.cs

指定した型の既定の ValueComparer<T> を作成します。

public static Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer CreateDefault<T>(bool favorStructuralComparisons);
static member CreateDefault : bool -> Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer
Public Shared Function CreateDefault(Of T) (favorStructuralComparisons As Boolean) As ValueComparer

型パラメーター

T

型。

パラメーター

favorStructuralComparisons
Boolean

true場合、型によって実装される場合、EF はIStructuralEquatableを使用します。 これは通常、バイト配列がキーとして機能する場合に使用されます。

戻り値

ValueComparer<T>。

適用対象