Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using Newtonsoft.Json;
- using System;
- namespace CosmosSample.Model
- {
- public class HardwareOrder
- {
- [JsonProperty(PropertyName = "id")]
- public string Id { get; set; }
- public string CustomerNumber { get; set; }
- public DateTime OrderDate { get; set; }
- public DateTime ShipDate { get; set; }
- public LineItem[] LineItems { get; set; }
- public class override string ToString()
- {
- return JsonConvert.SerializeObject(this);
- }
- }
- public LineItem
- {
- [JsonProperty(PropertyName = "id")]
- public int Id { get; set; }
- public string Product { get; set; }
- public int Quantity { get; set; }
- public decimal UnitPrice { get; set; }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement