public class Product { [Key] public long ID { get; set; } public string Name { get; set; } public int? StockQuantity { get; set; } [Column(TypeName="nvarchar")] [MaxLength(50)] public string Identifier { get; set; } public DateTime? ReleaseDate { get; set; } public decimal? DefaultPrice { get; set; } public virtual ICollection<Language> ProductLanguages { get; set; } public virtual ICollection<Region> ProductRegions { get; set; } public virtual ICollection<Price> ProductPrices { get; set; } public virtual ICollection<Link> ProductLinks { get; set; } public virtual ICollection<Order> Orders { get; set; } }
public class Link { [Key] public Int32 ID { get; set; } public string Rel { get; set; } public string Href { get; set; } public virtual ICollection<Product> LinkProducts { get; set; } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)