refactor: add conditional compilation for .NET and .NET Framework

This commit is contained in:
tekh 2025-08-19 14:18:01 +02:00
parent 50a541c5bf
commit acee28ffce

View File

@ -2,10 +2,15 @@
using System.ComponentModel.DataAnnotations.Schema; using System.ComponentModel.DataAnnotations.Schema;
namespace EnvelopeGenerator.Domain.Entities namespace EnvelopeGenerator.Domain.Entities
{ #if NET
[Table("TBSIG_CONFIG", Schema = "dbo")] ;
public class Config #elif NETFRAMEWORK
{ {
#endif
[Table("TBSIG_CONFIG", Schema = "dbo")]
public class Config
{
[Column("SENDING_PROFILE", TypeName = "int")] [Column("SENDING_PROFILE", TypeName = "int")]
[Required] [Required]
public int SendingProfile { get; set; } public int SendingProfile { get; set; }
@ -19,5 +24,8 @@ namespace EnvelopeGenerator.Domain.Entities
[Column("EXPORT_PATH", TypeName = "nvarchar(256)")] [Column("EXPORT_PATH", TypeName = "nvarchar(256)")]
public string ExportPath { get; set; } public string ExportPath { get; set; }
}
} }
#if NETFRAMEWORK
}
#endif