diff --git a/Inventory/InventoryItem.cs b/Inventory/InventoryItem.cs index 2919917..b37312b 100644 --- a/Inventory/InventoryItem.cs +++ b/Inventory/InventoryItem.cs @@ -1,4 +1,5 @@ -using MongoDB.Bson.Serialization.Attributes; +using MongoDB.Bson; +using MongoDB.Bson.Serialization.Attributes; using System.Text.Json.Serialization; namespace Core.Adapters.Lib @@ -18,10 +19,12 @@ namespace Core.Adapters.Lib public string Currency { get; set; } = null!; [BsonElement("categoryId")] + [BsonRepresentation(BsonType.String)] [JsonPropertyName("categoryId")] public Guid CategoryId { get; set; } [BsonElement("providerId")] + [BsonRepresentation(BsonType.String)] [JsonPropertyName("providerId")] public Guid ProviderId { get; set; }