Show / Hide Table of Contents

Class OwnedItemBase

Base class for an item that has an owner. By default, the PartitionKey will be the same as the OwnerId.

Inheritance
object
CosmosIdentityBase
OwnedItemBase
ParentedItemBase
Implements
IOwnedItem
ICosmosIdentity
Inherited Members
CosmosIdentityBase.Id
CosmosIdentityBase.OwnerId
CosmosIdentityBase.TimestampUnixStyle
CosmosIdentityBase.Timestamp
CosmosIdentityBase.Etag
CosmosIdentityBase.DiscriminatorValue
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Benday.CosmosDb.DomainModels
Assembly: Benday.CosmosDb.dll
Syntax
public abstract class OwnedItemBase : CosmosIdentityBase, IOwnedItem, ICosmosIdentity

Properties

| Edit this page View Source

PartitionKey

Returns the partition key for the entity. This value will be the same as the OwnerId.

Declaration
[JsonPropertyName("pk")]
public override string PartitionKey { get; set; }
Property Value
Type Description
string
Overrides
CosmosIdentityBase.PartitionKey

Methods

| Edit this page View Source

GetDiscriminatorName()

Get the discriminator value for the entity. This value will be the name of the class.

Declaration
protected override string GetDiscriminatorName()
Returns
Type Description
string
Overrides
CosmosIdentityBase.GetDiscriminatorName()

Implements

IOwnedItem
ICosmosIdentity
  • Edit this page
  • View Source
In this article
Back to top Copyright © www.benday.com | info@benday.com