Refactor: Remove CertificationType and ContractType
Removed `CertificationType` and `ContractType` properties and logic across the codebase as they were redundant. Updated `EnvelopeType` to include a validation extension method for improved data integrity. Refactored `CreateEnvelopeWizardPopup.razor` and other UI components to simplify handling of `EnvelopeType`. Conditionally included `CertificationType` and `ContractType` for `NETFRAMEWORK` targets using `#if NETFRAMEWORK` directives to ensure compatibility. Removed unused enums, imports, and methods. Updated `CreateEnvelopeCommandHandler` and related classes to reflect these changes.
This commit is contained in:
@@ -82,8 +82,11 @@ namespace EnvelopeGenerator.Domain.Entities
|
||||
[Column("COMMENT", TypeName = "nvarchar(128)")]
|
||||
public string Comment { get; set; }
|
||||
|
||||
#if NETFRAMEWORK
|
||||
|
||||
[Column("CONTRACT_TYPE")]
|
||||
public ContractType? ContractType { get; set; }
|
||||
#endif
|
||||
|
||||
#if NETFRAMEWORK
|
||||
[NotMapped]
|
||||
@@ -110,8 +113,11 @@ namespace EnvelopeGenerator.Domain.Entities
|
||||
[Obsolete("Use EnvelopeGenerator.Domain.Interfaces.EnvelopeExtensions.IsReadAndConfirm extension method instead.")]
|
||||
public bool ReadOnly => this.IsReadAndConfirm();
|
||||
|
||||
#if NETFRAMEWORK
|
||||
|
||||
[Column("CERTIFICATION_TYPE")]
|
||||
public CertificationType? CertificationType { get; set; }
|
||||
#endif
|
||||
|
||||
[Column("USE_ACCESS_CODE")]
|
||||
public bool? UseAccessCode { get; set; }
|
||||
|
||||
Reference in New Issue
Block a user