Added bsontype

This commit is contained in:
2025-06-27 20:15:51 -06:00
parent 08cca3a9c0
commit 20776516fd

View File

@@ -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; }