revert(EnvelopeDocument): Add Filepath for .net framework

revert(EnvelopeHistory): Add AddedWhen, ActionDate and Comment for .net framework
This commit is contained in:
tekh 2025-08-19 15:32:15 +02:00
parent 39af0fe4fd
commit 05888bc57d
2 changed files with 17 additions and 3 deletions

View File

@ -38,6 +38,9 @@ public class EnvelopeDocument
public List<DocumentReceiverElement> Elements { get; set; }
// TODO: * Check the Form App and remove the default value
[NotMapped]
public string Filepath { get; set; }
#if NETFRAMEWORK
[NotMapped]
public string FileNameOriginal { get; set; }
@ -48,9 +51,6 @@ public class EnvelopeDocument
[NotMapped]
public string Filename { get; set; }
[NotMapped]
public string Filepath { get; set; }
[NotMapped]
public Bitmap Thumbnail { get; set; }

View File

@ -1,6 +1,9 @@
using DigitalData.UserManager.Domain.Entities;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
#if NETFRAMEWORK
using System;
#endif
namespace EnvelopeGenerator.Domain.Entities
#if NET
@ -29,6 +32,17 @@ public class EnvelopeHistory
[Column("STATUS")]
public Constants.EnvelopeStatus Status { get; set; }
[Required]
[Column("ADDED_WHEN", TypeName = "datetime")]
[DatabaseGenerated(DatabaseGeneratedOption.Computed)]
public DateTime AddedWhen { get; set; }
[Column("ACTION_DATE", TypeName = "datetime")]
public DateTime ActionDate { get; set; } = DateTime.Now;
[Column("COMMENT", TypeName = "nvarchar(max)")]
public string Comment { get; set; }
public virtual User Sender { get; set; }
public virtual Receiver Receiver { get; set; }