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
| Method | Summary |
|---|---|
| Compute | Computes the fingerprint of a table model. |
| GetCanonicalForm | Returns 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
- table (DmTable) - The table model.
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
- table (DmTable) - The table model.
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