Generator Changes at 11/25/2025 12:39:59 AM +03:30
This commit is contained in:
@@ -1,5 +1,3 @@
|
|||||||
using CMSMicroservice.Domain.Enums;
|
|
||||||
|
|
||||||
namespace CMSMicroservice.Domain.Entities;
|
namespace CMSMicroservice.Domain.Entities;
|
||||||
//آدرس کاربر
|
//آدرس کاربر
|
||||||
public class Transactions : BaseAuditableEntity
|
public class Transactions : BaseAuditableEntity
|
||||||
@@ -11,4 +9,6 @@ public class Transactions : BaseAuditableEntity
|
|||||||
public DateTime? PaymentDate { get; set; }
|
public DateTime? PaymentDate { get; set; }
|
||||||
public string? RefId { get; set; }
|
public string? RefId { get; set; }
|
||||||
public TransactionType Type { get; set; }
|
public TransactionType Type { get; set; }
|
||||||
|
//UserOrder Collection Navigation Reference
|
||||||
|
public virtual ICollection<UserOrder> UserOrders { get; set; }
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
using CMSMicroservice.Domain.Enums;
|
|
||||||
|
|
||||||
namespace CMSMicroservice.Domain.Entities;
|
namespace CMSMicroservice.Domain.Entities;
|
||||||
//سفارش کاربر
|
//سفارش کاربر
|
||||||
public class UserOrder : BaseAuditableEntity
|
public class UserOrder : BaseAuditableEntity
|
||||||
@@ -12,6 +10,8 @@ public class UserOrder : BaseAuditableEntity
|
|||||||
public virtual Package? Package { get; set; }
|
public virtual Package? Package { get; set; }
|
||||||
//شناسه تراکنش
|
//شناسه تراکنش
|
||||||
public long? TransactionId { get; set; }
|
public long? TransactionId { get; set; }
|
||||||
|
//Transaction Navigation Property
|
||||||
|
public virtual Transactions? Transaction { get; set; }
|
||||||
//وضعیت پرداخت
|
//وضعیت پرداخت
|
||||||
public PaymentStatus PaymentStatus { get; set; }
|
public PaymentStatus PaymentStatus { get; set; }
|
||||||
//تاریخ پرداخت
|
//تاریخ پرداخت
|
||||||
@@ -27,6 +27,4 @@ public class UserOrder : BaseAuditableEntity
|
|||||||
public PaymentMethod? PaymentMethod { get; set; }
|
public PaymentMethod? PaymentMethod { get; set; }
|
||||||
//FactorDetails Collection Navigation Reference
|
//FactorDetails Collection Navigation Reference
|
||||||
public virtual ICollection<FactorDetails> FactorDetailss { get; set; }
|
public virtual ICollection<FactorDetails> FactorDetailss { get; set; }
|
||||||
//Transactions Collection Navigation Reference
|
|
||||||
public virtual ICollection<Transactions> Transactionss { get; set; }
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -17,7 +17,11 @@ public class UserOrderConfiguration : IEntityTypeConfiguration<UserOrder>
|
|||||||
.WithMany(entity => entity.UserOrders)
|
.WithMany(entity => entity.UserOrders)
|
||||||
.HasForeignKey(entity => entity.PackageId)
|
.HasForeignKey(entity => entity.PackageId)
|
||||||
.IsRequired(false);
|
.IsRequired(false);
|
||||||
builder.Property(entity => entity.TransactionId).IsRequired(false);
|
builder
|
||||||
|
.HasOne(entity => entity.Transaction)
|
||||||
|
.WithMany(entity => entity.TransactionUserOrders)
|
||||||
|
.HasForeignKey(entity => entity.TransactionId)
|
||||||
|
.IsRequired(false);
|
||||||
builder.Property(entity => entity.PaymentStatus).IsRequired(true);
|
builder.Property(entity => entity.PaymentStatus).IsRequired(true);
|
||||||
builder.Property(entity => entity.PaymentDate).IsRequired(false);
|
builder.Property(entity => entity.PaymentDate).IsRequired(false);
|
||||||
builder
|
builder
|
||||||
|
|||||||
Reference in New Issue
Block a user