From dcd313a80f0f022a474b726f5cb7b8c179c54e24 Mon Sep 17 00:00:00 2001 From: TRybina132 Date: Mon, 7 Aug 2023 13:03:33 +0300 Subject: [PATCH] remove init from constructors --- ManagedCode.Database.Cosmos/CosmosItem.cs | 2 -- 1 file changed, 2 deletions(-) diff --git a/ManagedCode.Database.Cosmos/CosmosItem.cs b/ManagedCode.Database.Cosmos/CosmosItem.cs index 700eb3d..8b8b873 100644 --- a/ManagedCode.Database.Cosmos/CosmosItem.cs +++ b/ManagedCode.Database.Cosmos/CosmosItem.cs @@ -11,14 +11,12 @@ public CosmosItem() { Id = $"{Guid.NewGuid():N}"; Type = GetType().Name; - PartitionKey = new PartitionKey(Id); } public CosmosItem(string id) { Id = id; Type = GetType().Name; - PartitionKey = new PartitionKey(Id); } [JsonProperty("type")] public string Type { get; set; }