feat: add CreateAnnotationCommand record for annotation creation

This commit is contained in:
tekh 2025-10-13 10:59:58 +02:00
parent e052bf56f4
commit adce61fead
2 changed files with 19 additions and 2 deletions

View File

@ -0,0 +1,9 @@
using EnvelopeGenerator.Application.Common.Query;
using MediatR;
namespace EnvelopeGenerator.Application.Annotations.Commands;
/// <summary>
///
/// </summary>
public record CreateAnnotationCommand : EnvelopeReceiverQueryBase, IRequest;

View File

@ -1,4 +1,5 @@
using System.ComponentModel.DataAnnotations; using EnvelopeGenerator.Domain.Interfaces;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema; using System.ComponentModel.DataAnnotations.Schema;
#if NETFRAMEWORK #if NETFRAMEWORK
using System.Drawing; using System.Drawing;
@ -14,7 +15,7 @@ namespace EnvelopeGenerator.Domain.Entities
#endif #endif
[Table("TBSIG_ENVELOPE_DOCUMENT", Schema = "dbo")] [Table("TBSIG_ENVELOPE_DOCUMENT", Schema = "dbo")]
public class Document public class Document : IHasEnvelope
{ {
public Document() public Document()
{ {
@ -41,6 +42,13 @@ public class Document
[NotMapped] [NotMapped]
public string Filepath { get; set; } public string Filepath { get; set; }
[ForeignKey("EnvelopeId")]
public virtual Envelope
#if NET
?
#endif
Envelope { get; set; }
#if NETFRAMEWORK #if NETFRAMEWORK
[NotMapped] [NotMapped]
public string FileNameOriginal { get; set; } public string FileNameOriginal { get; set; }