update
This commit is contained in:
@@ -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; }
|
||||
}
|
||||
|
||||
14
src/CMSMicroservice.Domain/Entities/PruductTag.cs
Normal file
14
src/CMSMicroservice.Domain/Entities/PruductTag.cs
Normal 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; }
|
||||
}
|
||||
|
||||
18
src/CMSMicroservice.Domain/Entities/Tag.cs
Normal file
18
src/CMSMicroservice.Domain/Entities/Tag.cs
Normal 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; }
|
||||
}
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
namespace CMSMicroservice.Domain.Events;
|
||||
public class CreateNewPruductTagEvent : BaseEvent
|
||||
{
|
||||
public CreateNewPruductTagEvent(PruductTag item)
|
||||
{
|
||||
Item = item;
|
||||
}
|
||||
public PruductTag Item { get; }
|
||||
}
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
namespace CMSMicroservice.Domain.Events;
|
||||
public class DeletePruductTagEvent : BaseEvent
|
||||
{
|
||||
public DeletePruductTagEvent(PruductTag item)
|
||||
{
|
||||
Item = item;
|
||||
}
|
||||
public PruductTag Item { get; }
|
||||
}
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
namespace CMSMicroservice.Domain.Events;
|
||||
public class UpdatePruductTagEvent : BaseEvent
|
||||
{
|
||||
public UpdatePruductTagEvent(PruductTag item)
|
||||
{
|
||||
Item = item;
|
||||
}
|
||||
public PruductTag Item { get; }
|
||||
}
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
namespace CMSMicroservice.Domain.Events;
|
||||
public class CreateNewTagEvent : BaseEvent
|
||||
{
|
||||
public CreateNewTagEvent(Tag item)
|
||||
{
|
||||
Item = item;
|
||||
}
|
||||
|
||||
public Tag Item { get; }
|
||||
}
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
namespace CMSMicroservice.Domain.Events;
|
||||
public class DeleteTagEvent : BaseEvent
|
||||
{
|
||||
public DeleteTagEvent(Tag item)
|
||||
{
|
||||
Item = item;
|
||||
}
|
||||
|
||||
public Tag Item { get; }
|
||||
}
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
namespace CMSMicroservice.Domain.Events;
|
||||
public class UpdateTagEvent : BaseEvent
|
||||
{
|
||||
public UpdateTagEvent(Tag item)
|
||||
{
|
||||
Item = item;
|
||||
}
|
||||
|
||||
public Tag Item { get; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user