-
-
Notifications
You must be signed in to change notification settings - Fork 96
/
Copy pathIItem.cs
30 lines (25 loc) · 890 Bytes
/
IItem.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// Copyright (c) David Pine. All rights reserved.
// Licensed under the MIT License.
namespace Microsoft.Azure.CosmosRepository;
/// <summary>
/// The base interface used for all repository object or object graphs.
/// </summary>
public interface IItem
{
/// <summary>
/// Gets or sets the item's globally unique identifier.
/// </summary>
string Id { get; set; }
/// <summary>
/// Gets or sets the item's type name.
/// </summary>
string Type { get; set; }
///// <summary>
///// Gets the item's PartitionKey. This string is used to instantiate the <c>Cosmos.PartitionKey</c> struct.
///// </summary>
string PartitionKey { get; }
/// <summary>
/// Gets the item PartitionKeys. This string array is used to instantiate the <c>Cosmos.PartitionKeys</c> struct.
/// </summary>
IEnumerable<string> PartitionKeys { get; }
}