Class RedbHash

Namespace: redb.Core.Utils
Assembly: redb.Core.dll

Utility for computing MD5 hash from object properties.
Supports both generic RedbObject{TProps} (hash from Props) and non-generic RedbObject (hash from base value_* fields).

public static class RedbHash

Inheritance

ObjectRedbHash

Methods

CombineHashes(List<Guid>)

🔥 Combines multiple hashes into single hash.

public static Guid CombineHashes(List<Guid> hashes)

ComputeFor(IRedbObject)

Compute hash for any IRedbObject - only from business data (Props).

public static Guid? ComputeFor(IRedbObject obj)

ComputeFor<TProps>(RedbObject<TProps>)

public static Guid? ComputeFor<TProps>(RedbObject<TProps> obj) where TProps : class, new()

ComputeForBaseFields(IRedbObject)

Compute hash from base value_* fields of IRedbObject (for Object schemes without Props).

public static Guid ComputeForBaseFields(IRedbObject obj)

ComputeForProps<TProps>(TProps)

public static Guid? ComputeForProps<TProps>(TProps props) where TProps : class, new()