Skip to content

DmTableFingerprint ​

Namespace: MJCZone.DapperMatic.Models

Assembly: MJCZone.DapperMatic

Summary ​

Computes a fingerprint of a table model: a SHA-256 hash that changes whenever anything reconciliation acts on changes, and is identical across processes, machines, cultures and runtime versions otherwise.

static public

Contents ​

Methods (6) | Fields (1)

Methods ​

MethodSummary
ComputeComputes the fingerprint of a table model.
GetCanonicalFormReturns the canonical text the fingerprint is computed over, one line per element.
GetType
ToString
Equals
GetHashCode

Compute ​

Computes the fingerprint of a table model.

csharp
string Compute(DmTable table)

Parameters ​

Returns ​

Type: string

The SHA-256 hash of the table's canonical form, as 64 lowercase hexadecimal characters.

GetCanonicalForm ​

Returns the canonical text the fingerprint is computed over, one line per element.

csharp
string GetCanonicalForm(DmTable table)

Parameters ​

Returns ​

Type: string

The canonical form.

GetType ​

csharp
GetType()

ToString ​

csharp
ToString()

Equals ​

csharp
Equals()

GetHashCode ​

csharp
GetHashCode()

Fields ​

FormatVersion ​

The version of the canonical form the fingerprint is computed over. It is part of every fingerprint, so changing the canonical form and this number together makes every stored fingerprint differ once.

Type: object