- Updated `using` directives in `Config.cs` and `EnvelopeType.cs` to include additional namespaces and removed `DigitalData.Core.Abstractions`. - Adjusted formatting for `StatusName` and `IsAlreadySent` properties in `Envelope.cs` for consistency. - Simplified `User` property in `Envelope.cs` by removing the namespace prefix. - Introduced a new `User` class in `User.cs` with various properties and data annotations for database mapping. - Removed the `<Nullable>` property from `EnvelopeGenerator.Domain.csproj`, which may impact nullability handling.
31 lines
1.1 KiB
C#
31 lines
1.1 KiB
C#
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
using System.Text.Json.Serialization;
|
|
|
|
namespace EnvelopeGenerator.Domain.Entities
|
|
{
|
|
[Table("TBSIG_CONFIG", Schema = "dbo")]
|
|
public class Config
|
|
{
|
|
[Column("DOCUMENT_PATH", TypeName = "nvarchar(256)")]
|
|
public string DocumentPath { get; set; }
|
|
|
|
[Column("SENDING_PROFILE", TypeName = "int")]
|
|
[Required]
|
|
public int SendingProfile { get; set; }
|
|
|
|
[Column("SIGNATURE_HOST", TypeName = "nvarchar(128)")]
|
|
public string SignatureHost { get; set; }
|
|
|
|
[Column("EXTERNAL_PROGRAM_NAME", TypeName = "nvarchar(30)")]
|
|
public string ExternalProgramName { get; set; }
|
|
|
|
[Column("EXPORT_PATH", TypeName = "nvarchar(256)")]
|
|
public string ExportPath { get; set; }
|
|
|
|
[Obsolete("Configuration does not have an ID; it represents a single table in the database.")]
|
|
[NotMapped]
|
|
[JsonIgnore]
|
|
public int Id => throw new InvalidOperationException("This configuration does not support an ID as it represents a single table in the database.");
|
|
}
|
|
} |