Jazyk

ValueComparer.CreateDefault Metoda

Definice

Přetížení

Název Description
CreateDefault(Type, Boolean)

Vytvoří výchozí hodnotu ValueComparer<T> pro daný typ.

CreateDefault<T>(Boolean)

Vytvoří výchozí hodnotu ValueComparer<T> pro daný typ.

CreateDefault(Type, Boolean)

Zdroj:
ValueComparer.cs
Zdroj:
ValueComparer.cs
Zdroj:
ValueComparer.cs
Zdroj:
ValueComparer.cs
Zdroj:
ValueComparer.cs
Zdroj:
ValueComparer.cs
Zdroj:
ValueComparer.cs

Vytvoří výchozí hodnotu ValueComparer<T> pro daný typ.

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

Parametry

type
Type

Typ.

favorStructuralComparisons
Boolean

Pokud true, ef použije IStructuralEquatable , pokud typ implementuje. Obvykle se používá, když pole bajtů fungují jako klíče.

Návraty

ValueComparer<T>.

Atributy

Platí pro

CreateDefault<T>(Boolean)

Zdroj:
ValueComparer.cs
Zdroj:
ValueComparer.cs
Zdroj:
ValueComparer.cs
Zdroj:
ValueComparer.cs

Vytvoří výchozí hodnotu ValueComparer<T> pro daný typ.

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

Parametry typu

T

Typ.

Parametry

favorStructuralComparisons
Boolean

Pokud true, ef použije IStructuralEquatable , pokud typ implementuje. Obvykle se používá, když pole bajtů fungují jako klíče.

Návraty

ValueComparer<T>.

Platí pro