Generator Changes at 11/17/2025 11:53:47 PM +03:30
This commit is contained in:
@@ -2,23 +2,24 @@ 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
|
||||
//Category Navigation Property
|
||||
public virtual Category? Parent { get; set; }
|
||||
//Category Collection Navigation Reference
|
||||
public virtual ICollection<Category> Categories { get; set; }
|
||||
//فعال؟
|
||||
//فعال؟
|
||||
public bool IsActive { get; set; }
|
||||
//ترتیب نمایش
|
||||
//ترتیب نمایش
|
||||
public int SortOrder { get; set; }
|
||||
//Category Collection Navigation Reference
|
||||
public virtual ICollection<Category> Categorys { get; set; }
|
||||
//PruductCategory Collection Navigation Reference
|
||||
public virtual ICollection<PruductCategory> PruductCategorys { get; set; }
|
||||
}
|
||||
|
||||
|
||||
@@ -20,4 +20,6 @@ public class Products : BaseAuditableEntity
|
||||
public virtual ICollection<ProductGallerys> ProductGalleryss { get; set; }
|
||||
//FactorDetails Collection Navigation Reference
|
||||
public virtual ICollection<FactorDetails> FactorDetailss { get; set; }
|
||||
//PruductCategory Collection Navigation Reference
|
||||
public virtual ICollection<PruductCategory> PruductCategorys { get; set; }
|
||||
}
|
||||
|
||||
13
src/CMSMicroservice.Domain/Entities/PruductCategory.cs
Normal file
13
src/CMSMicroservice.Domain/Entities/PruductCategory.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
namespace CMSMicroservice.Domain.Entities;
|
||||
//دسته بندی
|
||||
public class PruductCategory : BaseAuditableEntity
|
||||
{
|
||||
//شناسه محصول
|
||||
public string ProductId { get; set; }
|
||||
//Product Navigation Property
|
||||
public virtual Products Product { get; set; }
|
||||
//شناسه دسته بندی
|
||||
public string CategoryId { get; set; }
|
||||
//Category Navigation Property
|
||||
public virtual Category Category { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
namespace CMSMicroservice.Domain.Events;
|
||||
public class CreateNewPruductCategoryEvent : BaseEvent
|
||||
{
|
||||
public CreateNewPruductCategoryEvent(PruductCategory item)
|
||||
{
|
||||
}
|
||||
public PruductCategory Item { get; }
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
namespace CMSMicroservice.Domain.Events;
|
||||
public class DeletePruductCategoryEvent : BaseEvent
|
||||
{
|
||||
public DeletePruductCategoryEvent(PruductCategory item)
|
||||
{
|
||||
}
|
||||
public PruductCategory Item { get; }
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
namespace CMSMicroservice.Domain.Events;
|
||||
public class UpdatePruductCategoryEvent : BaseEvent
|
||||
{
|
||||
public UpdatePruductCategoryEvent(PruductCategory item)
|
||||
{
|
||||
}
|
||||
public PruductCategory Item { get; }
|
||||
}
|
||||
Reference in New Issue
Block a user