f0f48118e7
- Implemented Create, Delete, Get, and Update validators for Product Galleries. - Added Create, Delete, Get, and Update validators for Product Tags. - Created service classes for handling Discount Categories, Discount Orders, Discount Products, Discount Shopping Cart, Product Categories, Product Galleries, and Product Tags. - Each service class integrates with CQRS for command and query handling. - Established mapping profiles for Product Galleries.
26 lines
883 B
C#
26 lines
883 B
C#
namespace CMSMicroservice.Domain.Entities;
|
|
//دسته بندی
|
|
public class Category : BaseAuditableEntity
|
|
{
|
|
//نام لاتین
|
|
public string Name { get; set; }
|
|
//عنوان
|
|
public string Title { get; set; }
|
|
//توضیحات
|
|
public string? Description { get; set; }
|
|
//آدرس تصویر
|
|
public string? ImagePath { get; set; }
|
|
//شناسه والد
|
|
public long? ParentId { get; set; }
|
|
//Category Navigation Property
|
|
public virtual Category? Parent { get; set; }
|
|
//فعال؟
|
|
public bool IsActive { get; set; }
|
|
//ترتیب نمایش
|
|
public int SortOrder { get; set; }
|
|
//Category Collection Navigation Reference
|
|
public virtual ICollection<Category> Categories { get; set; }
|
|
//ProductCategory Collection Navigation Reference
|
|
public virtual ICollection<ProductCategory> ProductCategories { get; set; }
|
|
}
|