feat(Signature): add Annotations navigation property to Signature entity

- Added `IEnumerable<Annotation>? Annotations` to Signature class
- Added `using System.Collections.Generic;` for .NET Framework builds
This commit is contained in:
tekh 2025-10-13 09:48:24 +02:00
parent 281cf47834
commit 22a7619627
2 changed files with 12 additions and 1 deletions

View File

@ -48,7 +48,11 @@ public class Annotation
ChangedWho { get; set; }
[ForeignKey("ElementId")]
public virtual Signature Element { get; set; }
public virtual Signature
#if NET
?
#endif
Element { get; set; }
}
#if NETFRAMEWORK

View File

@ -4,6 +4,7 @@ using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
#if NETFRAMEWORK
using System;
using System.Collections.Generic;
#endif
namespace EnvelopeGenerator.Domain.Entities
@ -109,6 +110,12 @@ public class Signature : ISignature
[ForeignKey("ReceiverId")]
public virtual Receiver Receiver { get; set; }
public virtual IEnumerable<Annotation>
#if NET
?
#endif
Annotations { get; set; }
#if NETFRAMEWORK
[NotMapped]
public double Top => Math.Round(Y, 5);