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
-
EntityInfo
- Implements
Constructors
EntityInfo(DateTime)
Initializes a new instance of the EntityInfo class.
public EntityInfo(DateTime created)
Parameters
EntityInfo(DateTime, Nullable<DateTime>)
Initializes a new instance of the EntityInfo class.
public EntityInfo(DateTime created, DateTime? modified)
Parameters
created
DateTimeA DateTime value for when data this instance represents was first created.
modified
Nullable<DateTime>A 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
DateTimeA DateTime value for when data this instance represents was first created.
modified
Nullable<DateTime>A 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
EntityDataIntegrityValidationA 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 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 DateTime value from when data this resource represents was last modified, expressed as the Coordinated Universal Time (UTC).
public DateTime? Modified { get; }
Property Value
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.