Show / Hide Table of Contents

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 Source

DiscriminatorValue

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
| Edit this page View Source

Etag

Optimistic concurrency token for the entity.

Declaration
[JsonPropertyName("_etag")]
string Etag { get; set; }
Property Value
Type Description
string
| Edit this page View Source

Id

Id of the entity.

Declaration
[JsonPropertyName("id")]
string Id { get; set; }
Property Value
Type Description
string
| Edit this page View Source

PartitionKey

Top-level partition key of the entity.

Declaration
[JsonPropertyName("pk")]
string PartitionKey { get; set; }
Property Value
Type Description
string
| Edit this page View Source

Timestamp

Timestamp of the entity.

Declaration
DateTime Timestamp { get; set; }
Property Value
Type Description
DateTime
| Edit this page View Source

TimestampUnixStyle

Timestamp of the entity.

Declaration
[JsonPropertyName("_ts")]
long TimestampUnixStyle { get; set; }
Property Value
Type Description
long
  • Edit this page
  • View Source
In this article
Back to top Copyright © www.benday.com | info@benday.com