Added bsontype
This commit is contained in:
		| @@ -1,4 +1,5 @@ | |||||||
| using MongoDB.Bson.Serialization.Attributes; | using MongoDB.Bson; | ||||||
|  | using MongoDB.Bson.Serialization.Attributes; | ||||||
| using System.Text.Json.Serialization; | using System.Text.Json.Serialization; | ||||||
|  |  | ||||||
| namespace Core.Adapters.Lib | namespace Core.Adapters.Lib | ||||||
| @@ -18,10 +19,12 @@ namespace Core.Adapters.Lib | |||||||
|         public string Currency { get; set; } = null!; |         public string Currency { get; set; } = null!; | ||||||
|  |  | ||||||
|         [BsonElement("categoryId")] |         [BsonElement("categoryId")] | ||||||
|  |         [BsonRepresentation(BsonType.String)] | ||||||
|         [JsonPropertyName("categoryId")] |         [JsonPropertyName("categoryId")] | ||||||
|         public Guid CategoryId { get; set; } |         public Guid CategoryId { get; set; } | ||||||
|  |  | ||||||
|         [BsonElement("providerId")] |         [BsonElement("providerId")] | ||||||
|  |         [BsonRepresentation(BsonType.String)] | ||||||
|         [JsonPropertyName("providerId")] |         [JsonPropertyName("providerId")] | ||||||
|         public Guid ProviderId { get; set; } |         public Guid ProviderId { get; set; } | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user