Table of Contents

Class EntityInfo

Namespace
Cuemon.Data.Integrity
Assembly
Cuemon.Data.Integrity.dll

Represents the metadata information normally associated with an entity/resource. Implements the IEntityInfo

public class EntityInfo : IEntityInfo, IEntityDataTimestamp, IEntityDataIntegrity, IDataIntegrity
Inheritance
Object
EntityInfo
Implements

Constructors

EntityInfo(DateTime)

Initializes a new instance of the EntityInfo class.

public EntityInfo(DateTime created)

Parameters

created DateTime

A System.DateTime value for when data this instance represents was first created.

EntityInfo(DateTime, Nullable<DateTime>)

Initializes a new instance of the EntityInfo class.

public EntityInfo(DateTime created, DateTime? modified)

Parameters

created DateTime

A System.DateTime value for when data this instance represents was first created.

modified Nullable<DateTime>

A System.DateTime value for when data this instance represents was last modified.

EntityInfo(DateTime, Nullable<DateTime>, Byte[], EntityDataIntegrityValidation)

Initializes a new instance of the EntityInfo class.

public EntityInfo(DateTime created, DateTime? modified, byte[] checksum, EntityDataIntegrityValidation validation = EntityDataIntegrityValidation.Weak)

Parameters

created DateTime

A System.DateTime value for when data this instance represents was first created.

modified Nullable<DateTime>

A System.DateTime value for when data this instance represents was last modified.

checksum Byte[]

A byte[] containing a checksum of the data this instance represents.

validation EntityDataIntegrityValidation

A EntityDataIntegrityValidation enumeration value that indicates the validation strength of the specified checksum. Default is Weak.

Properties

Checksum

Gets a HashResult that represents the integrity of this instance.

public HashResult Checksum { get; }

Property Value

HashResult

The checksum that represents the integrity of this instance.

Created

Gets a System.DateTime value from when data this resource represents was first created, expressed as the Coordinated Universal Time (UTC).

public DateTime Created { get; }

Property Value

DateTime

The timestamp from when data this resource represents was first created.

Modified

Gets a System.DateTime value from when data this resource represents was last modified, expressed as the Coordinated Universal Time (UTC).

public DateTime? Modified { get; }

Property Value

Nullable<DateTime>

The timestamp from when data this resource represents was last modified.

Validation

Gets the validation strength of the integrity of this resource.

public EntityDataIntegrityValidation Validation { get; }

Property Value

EntityDataIntegrityValidation

The validation strength of the integrity of this resource.

See Also