Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Simple Supplier - Orders model
public class Supplier
{
public virtual Guid Id { get; set; }
public virtual string Name { get; set; }
public virtual ICollection<SupplierOrder> Orders { get; set; }
}
public class SupplierOrder
{
public virtual Guid Id { get; set; }
public virtual Supplier Supplier { get; set; }
public virtual DateTime OrderTime { get; set; }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment