Skip to content

Instantly share code, notes, and snippets.

@bjoerntx
Created April 16, 2018 10:20
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/e048a49c9f023fd27a5a0540b00f332d to your computer and use it in GitHub Desktop.
Save bjoerntx/e048a49c9f023fd27a5a0540b00f332d to your computer and use it in GitHub Desktop.
public class Report
{
public string Name { get; set; }
public List<Sale> Sales { get; set; } = new List<Sale>();
}
public class Sale
{
public Customer Customer { get; set; }
public Product Product { get; set; }
}
public class Product
{
public string Name { get; set; }
public decimal Price { get; set; }
}
public class Customer
{
public string Name { get; set; }
public int Id { get; set; }
public string Street { get; set; }
public string City { get; set; }
public int Zip { get; set; }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment