This commit is contained in:
masoodafar-web
2025-11-18 22:38:50 +03:30
parent dba8aecc97
commit f6dcd43346
76 changed files with 3778 additions and 1386 deletions

View File

@@ -22,4 +22,6 @@ public class Products : BaseAuditableEntity
public virtual ICollection<FactorDetails> FactorDetailss { get; set; }
//PruductCategory Collection Navigation Reference
public virtual ICollection<PruductCategory> PruductCategorys { get; set; }
//PruductTag Collection Navigation Reference
public virtual ICollection<PruductTag> PruductTags { get; set; }
}

View File

@@ -0,0 +1,14 @@
namespace CMSMicroservice.Domain.Entities;
//برچسب محصول
public class PruductTag : BaseAuditableEntity
{
//شناسه محصول
public string ProductId { get; set; }
//Product Navigation Property
public virtual Products Product { get; set; }
//شناسه تگ
public string TagId { get; set; }
//Tag Navigation Property
public virtual Tag Tag { get; set; }
}

View File

@@ -0,0 +1,18 @@
namespace CMSMicroservice.Domain.Entities;
//تگ
public class Tag : BaseAuditableEntity
{
//نام لاتین
public string Name { get; set; }
//عنوان
public string Title { get; set; }
//توضیحات
public string? Description { get; set; }
//فعال؟
public bool IsActive { get; set; }
//ترتیب نمایش
public int SortOrder { get; set; }
//PruductTag Collection Navigation Reference
public virtual ICollection<PruductTag> PruductTags { get; set; }
}

View File

@@ -0,0 +1,10 @@
namespace CMSMicroservice.Domain.Events;
public class CreateNewPruductTagEvent : BaseEvent
{
public CreateNewPruductTagEvent(PruductTag item)
{
Item = item;
}
public PruductTag Item { get; }
}

View File

@@ -0,0 +1,10 @@
namespace CMSMicroservice.Domain.Events;
public class DeletePruductTagEvent : BaseEvent
{
public DeletePruductTagEvent(PruductTag item)
{
Item = item;
}
public PruductTag Item { get; }
}

View File

@@ -0,0 +1,10 @@
namespace CMSMicroservice.Domain.Events;
public class UpdatePruductTagEvent : BaseEvent
{
public UpdatePruductTagEvent(PruductTag item)
{
Item = item;
}
public PruductTag Item { get; }
}

View File

@@ -0,0 +1,11 @@
namespace CMSMicroservice.Domain.Events;
public class CreateNewTagEvent : BaseEvent
{
public CreateNewTagEvent(Tag item)
{
Item = item;
}
public Tag Item { get; }
}

View File

@@ -0,0 +1,11 @@
namespace CMSMicroservice.Domain.Events;
public class DeleteTagEvent : BaseEvent
{
public DeleteTagEvent(Tag item)
{
Item = item;
}
public Tag Item { get; }
}

View File

@@ -0,0 +1,11 @@
namespace CMSMicroservice.Domain.Events;
public class UpdateTagEvent : BaseEvent
{
public UpdateTagEvent(Tag item)
{
Item = item;
}
public Tag Item { get; }
}