Table of Contents

Class EntityCreateModel<TKey>

Namespace
Arbiter.CommandQuery.Models
Assembly
Arbiter.CommandQuery.dll

A create model base class

public class EntityCreateModel<TKey> : EntityIdentifierModel<TKey>, IHaveIdentifier<TKey>, ITrackCreated, ITrackUpdated

Type Parameters

TKey

The type of the key.

Inheritance
EntityCreateModel<TKey>
Implements
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.

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.

See Also