Skip to content

Instantly share code, notes, and snippets.

@bjoerntx
Created August 10, 2017 11:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bjoerntx/cdc8328c4ba26690e66a8ecc03b418f6 to your computer and use it in GitHub Desktop.
Save bjoerntx/cdc8328c4ba26690e66a8ecc03b418f6 to your computer and use it in GitHub Desktop.
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