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; | ||||
|  | ||||
| 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; } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user