Interface for data objects that can track their changes, including logical deletion.
Inherits: IChangeable
Description
The ITrackagle interface allows you to define data objects that can track their changes, including logical deletion.
Properties
CreatedTime
UTC time at which the object was created.
DateTime CreatedTime { get; set; }
LastChangeTime
UTC time at which the object was last changed (created, updated, or deleted).
DateTime LastChangeTime { get; set; }
IsDeleted
Logical deletion flag. True when object is deleted and null or false otherwise
bool IsDeleted { get; set; }
Examples
public class MyData: IStringIdentifiable, ITrackable
{
string id {get; set;}
string field1;
int field2;
...
DateTime change_time {get; set;}
DateTime create_time {get; set;}
bool deleted {get; set;}
}