refactor: Plattform-spezifische Anpassungen an der Receiver-Klasse

- `NotMapped` Properties nur für NETFRAMEWORK verfügbar gemacht
- Klasse und Namespaces für NET- und NETFRAMEWORK-Bedingungen angepasst
- Redundant in NET definierten Code entfernt
This commit is contained in:
2025-08-19 14:14:10 +02:00
parent d43877db62
commit 50a541c5bf

View File

@@ -7,7 +7,12 @@ using System.Collections.Generic;
#endif #endif
namespace EnvelopeGenerator.Domain.Entities namespace EnvelopeGenerator.Domain.Entities
#if NET
;
#elif NETFRAMEWORK
{ {
#endif
[Table("TBSIG_RECEIVER", Schema = "dbo")] [Table("TBSIG_RECEIVER", Schema = "dbo")]
public class Receiver public class Receiver
{ {
@@ -37,6 +42,7 @@ namespace EnvelopeGenerator.Domain.Entities
public List<EnvelopeReceiver> EnvelopeReceivers { get; set; } public List<EnvelopeReceiver> EnvelopeReceivers { get; set; }
#if NETFRAMEWORK
[NotMapped] [NotMapped]
public string Name { get; set; } public string Name { get; set; }
@@ -86,5 +92,9 @@ namespace EnvelopeGenerator.Domain.Entities
{ {
return EmailAddress.ToUpperInvariant().GetChecksum(); return EmailAddress.ToUpperInvariant().GetChecksum();
} }
#endif
} }
#if NETFRAMEWORK
} }
#endif