-
-
Notifications
You must be signed in to change notification settings - Fork 96
/
Copy pathItemConfiguration.cs
61 lines (49 loc) · 2.01 KB
/
ItemConfiguration.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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
// Copyright (c) David Pine. All rights reserved.
// Licensed under the MIT License.
namespace Microsoft.Azure.CosmosRepository.Options;
internal class ItemConfiguration
{
public ItemConfiguration(
Type type,
string containerName,
string partitionKeyPath,
UniqueKeyPolicy? uniqueKeyPolicy = null,
ThroughputProperties? throughputProperties = null,
int defaultTimeToLive = -1,
bool syncContainerProperties = false,
ChangeFeedOptions? changeFeedOptions = null,
bool useStrictTypeChecking = true)
: this(type, containerName, new[] { partitionKeyPath }, uniqueKeyPolicy, throughputProperties, defaultTimeToLive, syncContainerProperties, changeFeedOptions, useStrictTypeChecking)
{
}
public ItemConfiguration(
Type type,
string containerName,
IEnumerable<string> partitionKeyPaths,
UniqueKeyPolicy? uniqueKeyPolicy = null,
ThroughputProperties? throughputProperties = null,
int defaultTimeToLive = -1,
bool syncContainerProperties = false,
ChangeFeedOptions? changeFeedOptions = null,
bool useStrictTypeChecking = true)
{
Type = type;
ContainerName = containerName;
PartitionKeyPaths = partitionKeyPaths;
UniqueKeyPolicy = uniqueKeyPolicy;
ThroughputProperties = throughputProperties;
DefaultTimeToLive = defaultTimeToLive;
SyncContainerProperties = syncContainerProperties;
ChangeFeedOptions = changeFeedOptions;
UseStrictTypeChecking = useStrictTypeChecking;
}
public Type Type { get; }
public string ContainerName { get; }
public IEnumerable<string> PartitionKeyPaths { get; }
public UniqueKeyPolicy? UniqueKeyPolicy { get; }
public ThroughputProperties? ThroughputProperties { get; }
public int DefaultTimeToLive { get; }
public bool SyncContainerProperties { get; }
public ChangeFeedOptions? ChangeFeedOptions { get; }
public bool UseStrictTypeChecking { get; }
}