Skip to content

Commit

Permalink
remove init from constructors
Browse files Browse the repository at this point in the history
  • Loading branch information
TRybina132 committed Aug 7, 2023
1 parent 3f5e5f2 commit dcd313a
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions ManagedCode.Database.Cosmos/CosmosItem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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; }
Expand Down

0 comments on commit dcd313a

Please sign in to comment.