Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class BaseEntity {
- [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
- public long Id { get; set; }
- public DateTime UpdatedDate { get; set; }
- public DateTime CreatedDate { get; set; }
- }
- public class Category : BaseEntity {
- public string Name { get; set; }
- [ForeignKey("Parent")]
- public long? ParentId { get; set; }
- public Category Parent { get; set; }
- public List<Category> SubCategory { get; set; }
- public List<Product> Products { get; set; }
- public string Comment { get; set; }
- public bool isRemoved { get; set; }
- public int Priority { get; set; }
- }
- public class Product : BaseEntity {
- public string Name { get; set; }
- public string ProductCode { get; set; }
- public long SubCategoryId { get; set; }
- public decimal Price { get; set; }
- public int Quantity { get; set; }
- public string ReturnedDesigns { get; set; }
- public bool IsRemoved { get; set; }
- public long CategoryId { get; set; }
- public Category Category { get; set; }
- public long LexiconId { get; set; }
- public Lexicon Lexicon { get; set; }
- public string ProductPromId { get; set; }
- public decimal PurchasePrice { get; set; }
- public decimal PartnerPrice { get; set; }
- public decimal RecomendedPartnerPrice { get; set; }
- public string PartnerProductCode { get; set; }
- public string ProductFoto { get; set; }
- [NotMapped]
- public int WaitingQuantity { get; set; }
- }
- public class Lexicon : BaseEntity {
- public string OfficialName { get; set; }
- public string PurchaseName { get; set; }
- public string CasualName { get; set; }
- public string VendorName { get; set; }
- public decimal VendorPrice { get; set; }
- public int DesignsQuantity { get; set; }
- public long ProductTypeId { get; set; }
- public ProductType ProductType { get; set; }
- public bool HasColors { get; set; }
- public bool HasDesigns { get; set; }
- public bool HasComment { get; set; }
- public bool HasQuantity { get; set; }
- public bool CanBeBase { get; set; }
- public bool CanHaveUserImg { get; set; }
- public int Priority { get; set; }
- public bool IsForPartners { get; set; }
- public string OfficialPartnerName { get; set; }
- public int PartnerPriority { get; set; }
- public bool IsRemoved { get; set; }
- }
- public class ProductType : BaseEntity{
- public string Name { get; set; }
- }
- public class ProductColor : BaseEntity {
- public long ProductId { get; set; }
- public Product Product { get; set; }
- public long ColorId { get; set; }
- public Color Color { get; set; }
- public int Quantity { get; set; }
- public DateTime ShipmentDate { get; set; }
- public string PictureUrl1 { get; set; }
- public string PictureUrl2 { get; set; }
- public string PictureUrl3 { get; set; }
- public string PictureUrl4 { get; set; }
- public string PictureUrl5 { get; set; }
- public bool isRemoved { get; set; }
- [NotMapped]
- public int WaitingQuantity { get; set; }
- }
- public class Color : BaseEntity {
- public string Name { get; set; }
- public string Code { get; set; }
- public int Priority { get; set; }
- public bool IsRemoved { get; set; }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement