Created
August 10, 2017 11:13
-
-
Save bjoerntx/cdc8328c4ba26690e66a8ecc03b418f6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Report | |
{ | |
public Report() | |
{ | |
this.Sales = new List<Sale>(); | |
} | |
public string Name { get; set; } | |
public List<Sale> Sales { get; set; } | |
} | |
public class Sale | |
{ | |
public Sale() | |
{ | |
this.Items = new List<Item>(); | |
} | |
public int Id { get; set; } | |
public List<Item> Items { get; set; } | |
} | |
public class Item | |
{ | |
public int Qty { get; set; } | |
public float Price { get; set; } | |
public Product Product { get; set; } | |
} | |
public class Product | |
{ | |
public string Name { get; set; } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment