Refactor: Replace EnvelopeType with EnvelopeTypeDefaults

Replaced the `EnvelopeType` class with `EnvelopeTypeDefaults` across the codebase to standardize the data model. Updated DTOs, repositories, services, mappings, and database contexts to reflect this change.

Key updates include:
- Updated `EnvelopeDto` to use `EnvelopeTypeDefaults`.
- Modified `IEnvelopeTypeRepository` and `IEnvelopeTypeService` interfaces.
- Adjusted mappings in `MappingProfile.cs` for `EnvelopeTypeDefaults`.
- Updated `ReadEnvelopeTypesQueryHandler` and `CreateEnvelopeCommandHandler` to use `EnvelopeTypeDefaults`.
- Replaced `EnvelopeType` with `EnvelopeTypeDefaults` in `EnvelopeTypeModel.vb`, `frmEnvelopeMainData.vb`, and `EGDbContextBase`.
- Introduced the `EnvelopeTypeDefaults` class with updated schema mappings.
- Updated `EnvelopeTypeRepository` and `TestEnvelopeTypeController` to use `EnvelopeTypeDefaults`.

These changes ensure consistency and improve maintainability across the application.
This commit is contained in:
2026-11-12 16:42:27 +01:00
parent 34b184b057
commit 621f9333a4
15 changed files with 24 additions and 24 deletions

View File

@@ -150,7 +150,7 @@ namespace EnvelopeGenerator.Domain.Entities
{ get; set; }
[ForeignKey("EnvelopeTypeId")]
public virtual EnvelopeType
public virtual EnvelopeTypeDefaults
#if nullable
?
#endif

View File

@@ -9,7 +9,7 @@ using System;
namespace EnvelopeGenerator.Domain.Entities
{
[Table("TBSIG_ENVELOPE_TYPE", Schema = "dbo")]
public class EnvelopeType
public class EnvelopeTypeDefaults
{
[Key]
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]