Advertisement
Guest User

Untitled

a guest
Nov 20th, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 2.37 KB | None | 0 0
  1. public class Category
  2.     {
  3.         public string Name { get; set; }
  4.         public string Description { get; set; }
  5.         public int ParentId { get; set; }
  6.         public string Image { get; set; }
  7.         public string Slug { get; set; }
  8.         public int Id { get; set; }
  9.         public ICollection<CategoryFilter> CategoryFilters { get; set; }
  10.         public ICollection<Product> Products { get; set; }
  11.  
  12.     }
  13. public class CategoryFilter
  14.     {
  15.         public int Id { get; set; }
  16.         public int CategoryId { get; set; }
  17.         public int FilterGroupId { get; set; }
  18.         public Category Category { get; set; }
  19.         public FilterGroup FilterGroup { get; set; }
  20.     }
  21. public class FilterGroup
  22.     {
  23.         public int Id { get; set; }
  24.         public string Name { get; set; }
  25.         public ICollection<CategoryFilter> CategoryFilters { get; set; }
  26.         public ICollection<Filter> Filters { get; set; } = new List<Filter>();
  27.     }
  28.  public class Filter
  29.     {
  30.         public int Id { get; set; }
  31.         public int FilterGroupId { get; set; }
  32.         public ProductFilter ProductFilter { get; set; }
  33.         public string Name { get; set; }
  34.         public Product Product { get; set; }
  35.         public FilterGroup FilterGroup { get; set; }
  36.     }
  37. public class Product
  38.     {
  39.         public int Id { get; set; }
  40.         public string Title { get; set; }
  41.         public int UserId { get; set; }
  42.         public string Slug { get; set; }
  43.         public int CategoryId { get; set; }
  44.         public int Price { get; set; }
  45.         public string Currency { get; set; }
  46.         public string Image { get; set; }
  47.         public string Description { get; set; }
  48.         public DateTime DateAdded { get; set; } = DateTime.Now;
  49.         public DateTime DateModified { get; set; } = DateTime.Now;
  50.         public Category Category { get; set; }
  51.         public User User { get; set; }
  52.         public ICollection<ProductFilter> ProductFilters { get; set; }
  53.         public ICollection<FilterGroup> FiltersGroup { get; set; }
  54.         public ICollection<Filter> Filters { get; set; }
  55.     }
  56. public class ProductFilter
  57.     {
  58.         public int Id { get; set; }
  59.         public int ProductId { get; set; }
  60.         public int FilterId { get; set; }
  61.         public ICollection<Filter> Filters { get; set; } = new List<Filter>();
  62.         public Product Product { get; set; }
  63.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement