Show / Hide Table of Contents

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 Source

EntityType

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
| 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

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