Interface ICosmosIdentity
Represents the basic properties of a Cosmos DB entity.
Namespace: Benday.CosmosDb.DomainModels
Assembly: Benday.CosmosDb.dll
Syntax
public interface ICosmosIdentity
Properties
| Edit this page View SourceDiscriminatorValue
Second-level partition key for the entity. This value describes the domain model type for the entity.
Declaration
[JsonPropertyName("discriminator")]
string DiscriminatorValue { 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 |
Id
Id of the entity.
Declaration
[JsonPropertyName("id")]
string Id { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
PartitionKey
Top-level partition key of the entity.
Declaration
[JsonPropertyName("pk")]
string PartitionKey { 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 |