ValueComparer<T>.Snapshot Method

Definition

Overloads

Snapshot(Object)

Creates a snapshot of the given instance.

Snapshot(T)

Creates a snapshot of the given instance.

Snapshot(Object)

Source:
ValueComparer%60.cs
Source:
ValueComparer%60.cs
Source:
ValueComparer%60.cs
Source:
ValueComparer%60.cs
Source:
ValueComparer%60.cs
Source:
ValueComparer%60.cs
Source:
ValueComparer%60.cs
Source:
ValueComparer%60.cs
Source:
ValueComparer%60.cs

Creates a snapshot of the given instance.

C#
public override object Snapshot (object instance);
C#
public override object? Snapshot (object? instance);

Parameters

instance
Object

The instance.

Returns

The snapshot.

Remarks

Snapshotting is the process of creating a copy of the value into a snapshot so it can later be compared to determine if it has changed. For some types, such as collections, this needs to be a deep copy of the collection rather than just a shallow copy of the reference.

Applies to

Entity Framework Core 9.0 i druge verzije
Proizvod Verzije
Entity Framework Core 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0

Snapshot(T)

Source:
ValueComparer%60.cs
Source:
ValueComparer%60.cs
Source:
ValueComparer%60.cs
Source:
ValueComparer%60.cs
Source:
ValueComparer%60.cs
Source:
ValueComparer%60.cs
Source:
ValueComparer%60.cs
Source:
ValueComparer%60.cs
Source:
ValueComparer%60.cs

Creates a snapshot of the given instance.

C#
public virtual T Snapshot (T instance);

Parameters

instance
T

The instance.

Returns

T

The snapshot.

Remarks

Snapshotting is the process of creating a copy of the value into a snapshot so it can later be compared to determine if it has changed. For some types, such as collections, this needs to be a deep copy of the collection rather than just a shallow copy of the reference.

Applies to

Entity Framework Core 9.0 i druge verzije
Proizvod Verzije
Entity Framework Core 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0