refactor(CreateHistoryCommand); update to use EnvelopeReceiverQueryBase and related extension methods

This commit is contained in:
2025-08-27 14:41:20 +02:00
parent 1c0c23aca4
commit c456cb0301
2 changed files with 28 additions and 18 deletions

View File

@@ -1,6 +1,8 @@
using DigitalData.UserManager.Domain.Entities;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using EnvelopeGenerator.Domain.Interfaces;
#if NETFRAMEWORK
using System;
#endif
@@ -13,7 +15,7 @@ namespace EnvelopeGenerator.Domain.Entities
#endif
[Table("TBSIG_ENVELOPE_HISTORY", Schema = "dbo")]
public class EnvelopeHistory
public class EnvelopeHistory : IHasEnvelope, IHasReceiver
{
[Key]
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
@@ -39,7 +41,7 @@ public class EnvelopeHistory
[Column("ACTION_DATE", TypeName = "datetime")]
public DateTime? ActionDate { get; set; } = DateTime.Now;
[Column("COMMENT", TypeName = "nvarchar(max)")]
public string
#if NET
@@ -47,6 +49,14 @@ public class EnvelopeHistory
#endif
Comment { get; set; }
[ForeignKey("EnvelopeId")]
public virtual Envelope
#if NET
?
#endif
Envelope { get; set; }
[ForeignKey("UserReference")]
public virtual User
#if NET
?
@@ -54,6 +64,7 @@ public class EnvelopeHistory
Sender
{ get; set; }
[ForeignKey("UserReference")]
public virtual Receiver
#if NET
?