//------------------------------------------------------------------------------ // // Этот код создан по шаблону. // // Изменения, вносимые в этот файл вручную, могут привести к непредвиденной работе приложения. // Изменения, вносимые в этот файл вручную, будут перезаписаны при повторном создании кода. // //------------------------------------------------------------------------------ namespace Learn { using System; using System.Collections.Generic; public partial class Product { [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] public Product() { this.ProductPhoto = new HashSet(); this.ProductSale = new HashSet(); this.Product1 = new HashSet(); this.Product2 = new HashSet(); } public int ID { get; set; } public string Title { get; set; } public decimal Cost { get; set; } public string Description { get; set; } public string MainImagePath { get; set; } public bool IsActive { get; set; } public Nullable ManufacturerID { get; set; } public virtual Manufacturer Manufacturer { get; set; } [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection ProductPhoto { get; set; } [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection ProductSale { get; set; } [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection Product1 { get; set; } [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection Product2 { get; set; } } }