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:
@@ -57,7 +57,7 @@ public abstract class EGDbContextBase : DbContext
|
||||
|
||||
public DbSet<History> EnvelopeHistories { get; set; }
|
||||
|
||||
public DbSet<EnvelopeType> EnvelopeTypes { get; set; }
|
||||
public DbSet<EnvelopeTypeDefaults> EnvelopeTypes { get; set; }
|
||||
|
||||
public DbSet<Receiver> Receivers { get; set; }
|
||||
|
||||
@@ -233,7 +233,7 @@ public abstract class EGDbContextBase : DbContext
|
||||
AddTrigger<History>();
|
||||
AddTrigger<EnvelopeReceiver>();
|
||||
AddTrigger<EnvelopeReceiverReadOnly>();
|
||||
AddTrigger<EnvelopeType>();
|
||||
AddTrigger<EnvelopeTypeDefaults>();
|
||||
AddTrigger<Receiver>();
|
||||
#if NET
|
||||
AddTrigger<EmailOut>();
|
||||
|
||||
@@ -6,7 +6,7 @@ using EnvelopeGenerator.Application.Common.Interfaces.Repositories;
|
||||
namespace EnvelopeGenerator.Infrastructure.Repositories;
|
||||
|
||||
[Obsolete("Use IRepository")]
|
||||
public class EnvelopeTypeRepository : CRUDRepository<EnvelopeType, int, EGDbContext>, IEnvelopeTypeRepository
|
||||
public class EnvelopeTypeRepository : CRUDRepository<EnvelopeTypeDefaults, int, EGDbContext>, IEnvelopeTypeRepository
|
||||
{
|
||||
public EnvelopeTypeRepository(EGDbContext dbContext) : base(dbContext, dbContext.EnvelopeTypes)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user