Class EntityReadModel<TKey>
- Namespace
- Arbiter.CommandQuery.Models
- Assembly
- Arbiter.CommandQuery.dll
A read model base class
public class EntityReadModel<TKey> : EntityIdentifierModel<TKey>, IHaveIdentifier<TKey>, ITrackCreated, ITrackUpdated, ITrackConcurrency
Type Parameters
TKey
The type of the key.
- Inheritance
-
EntityIdentifierModel<TKey>EntityReadModel<TKey>
- Implements
-
IHaveIdentifier<TKey>
- Inherited Members
Properties
Created
Gets or sets the Coordinated Universal Time (UTC) date and time the entity was created.
[JsonPropertyName("created")]
[JsonPropertyOrder(9990)]
public DateTimeOffset Created { get; set; }
Property Value
- DateTimeOffset
The Coordinated Universal Time (UTC) date and time the entity was created.
CreatedBy
Gets or sets the user that created this entity.
[JsonPropertyName("createdBy")]
[JsonPropertyOrder(9991)]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? CreatedBy { get; set; }
Property Value
- string
The user that created this entity.
RowVersion
Gets or sets the row version concurrency value.
[JsonPropertyName("rowVersion")]
[JsonPropertyOrder(9999)]
public long RowVersion { get; set; }
Property Value
- long
The row version concurrency value.
Updated
Gets or sets the Coordinated Universal Time (UTC) date and time the entity was last updated.
[JsonPropertyName("updated")]
[JsonPropertyOrder(9992)]
public DateTimeOffset Updated { get; set; }
Property Value
- DateTimeOffset
The Coordinated Universal Time (UTC) date and time the entity was last updated.
UpdatedBy
Gets or sets the user that last updated this entity.
[JsonPropertyName("updatedBy")]
[JsonPropertyOrder(9993)]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? UpdatedBy { get; set; }
Property Value
- string
The user that last updated this entity.