Class OwnedItemBase
Base class for an item that has an owner. By default, the PartitionKey will be the same as the OwnerId.
Inherited Members
Namespace: Benday.CosmosDb.DomainModels
Assembly: Benday.CosmosDb.dll
Syntax
public abstract class OwnedItemBase : CosmosIdentityBase, IOwnedItem, ICosmosIdentity
Properties
| Edit this page View SourcePartitionKey
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
Methods
| Edit this page View SourceGetDiscriminatorName()
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 |