Interface ICosmosIdentity
Represents the basic properties of a Cosmos DB entity. Identity and tenant properties (Id, TenantId) come from the shared ITenantItem<string> interface.
Inherited Members
ITenantItem<string>.TenantId
IEntityIdentity<string>.Id
Namespace: Benday.CosmosDb.DomainModels
Assembly: Benday.CosmosDb.dll
Syntax
public interface ICosmosIdentity : ITenantItem<string>, IEntityIdentity<string>
Properties
| Edit this page View SourceEntityType
Second-level partition key for the entity. This value describes the domain model type for the entity.
Declaration
[JsonPropertyName("entityType")]
string EntityType { get; }
Property Value
| Type | Description |
|---|---|
| string |
Etag
Optimistic concurrency token for the entity.
Declaration
[JsonPropertyName("_etag")]
string Etag { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Timestamp
Timestamp of the entity.
Declaration
DateTime Timestamp { get; set; }
Property Value
| Type | Description |
|---|---|
| DateTime |
TimestampUnixStyle
Timestamp of the entity.
Declaration
[JsonPropertyName("_ts")]
long TimestampUnixStyle { get; set; }
Property Value
| Type | Description |
|---|---|
| long |