public partial class Cart { public int id { get; set; } public string clientId { get; set; } public int productId { get; set; } public int amount { get; set; } public Nullable<System.DateTime> datePurchased { get; set; } public bool isInCart { get; set; } [InverseProperty("Cart")] public virtual Product Product { get; set; } }
public partial class Product { public Product() { this.Carts = new HashSet<Cart>(); } public int id { get; set; } public int typeId { get; set; } public string name { get; set; } public Nullable<double> price { get; set; } public string description { get; set; } public string image { get; set; } [ForeignKey("productId")] [InverseProperty("Product")] public virtual ICollection<Cart> Carts { get; set; } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)