Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Category
- {
- public string Name { get; set; }
- public string Description { get; set; }
- public int ParentId { get; set; }
- public string Image { get; set; }
- public string Slug { get; set; }
- public int Id { get; set; }
- public ICollection<CategoryFilter> CategoryFilters { get; set; }
- public ICollection<Product> Products { get; set; }
- }
- public class CategoryFilter
- {
- public int Id { get; set; }
- public int CategoryId { get; set; }
- public int FilterGroupId { get; set; }
- public Category Category { get; set; }
- public FilterGroup FilterGroup { get; set; }
- }
- public class FilterGroup
- {
- public int Id { get; set; }
- public string Name { get; set; }
- public ICollection<CategoryFilter> CategoryFilters { get; set; }
- public ICollection<Filter> Filters { get; set; } = new List<Filter>();
- }
- public class Filter
- {
- public int Id { get; set; }
- public int FilterGroupId { get; set; }
- public ProductFilter ProductFilter { get; set; }
- public string Name { get; set; }
- public Product Product { get; set; }
- public FilterGroup FilterGroup { get; set; }
- }
- public class Product
- {
- public int Id { get; set; }
- public string Title { get; set; }
- public int UserId { get; set; }
- public string Slug { get; set; }
- public int CategoryId { get; set; }
- public int Price { get; set; }
- public string Currency { get; set; }
- public string Image { get; set; }
- public string Description { get; set; }
- public DateTime DateAdded { get; set; } = DateTime.Now;
- public DateTime DateModified { get; set; } = DateTime.Now;
- public Category Category { get; set; }
- public User User { get; set; }
- public ICollection<ProductFilter> ProductFilters { get; set; }
- public ICollection<FilterGroup> FiltersGroup { get; set; }
- public ICollection<Filter> Filters { get; set; }
- }
- public class ProductFilter
- {
- public int Id { get; set; }
- public int ProductId { get; set; }
- public int FilterId { get; set; }
- public ICollection<Filter> Filters { get; set; } = new List<Filter>();
- public Product Product { get; set; }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement