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:
@@ -8,8 +8,8 @@ Public Class EnvelopeTypeModel
|
||||
MyBase.New(pState)
|
||||
End Sub
|
||||
|
||||
Private Function ToEnvelopeType(pRow As DataRow) As EnvelopeType
|
||||
Return New EnvelopeType() With {
|
||||
Private Function ToEnvelopeType(pRow As DataRow) As EnvelopeTypeDefaults
|
||||
Return New EnvelopeTypeDefaults() With {
|
||||
.Id = pRow.ItemEx("GUID", 0),
|
||||
.Title = pRow.ItemEx("TITLE", ""),
|
||||
.UseAccessCode = pRow.ItemEx("USE_ACCESS_CODE", False),
|
||||
@@ -27,7 +27,7 @@ Public Class EnvelopeTypeModel
|
||||
}
|
||||
End Function
|
||||
|
||||
Public Function GetById(pEnvelopeTypeId As Integer) As EnvelopeType
|
||||
Public Function GetById(pEnvelopeTypeId As Integer) As EnvelopeTypeDefaults
|
||||
Dim oSql As String = $"SELECT * FROM TBSIG_ENVELOPE_TYPE WHERE GUID = {pEnvelopeTypeId}"
|
||||
Dim oTable As DataTable = Database.GetDatatable(oSql)
|
||||
|
||||
@@ -39,7 +39,7 @@ Public Class EnvelopeTypeModel
|
||||
Return ToEnvelopeType(oRow)
|
||||
End Function
|
||||
|
||||
Public Function List() As IEnumerable(Of EnvelopeType)
|
||||
Public Function List() As IEnumerable(Of EnvelopeTypeDefaults)
|
||||
Dim oSql As String = $"SELECT * FROM TBSIG_ENVELOPE_TYPE"
|
||||
Dim oTable As DataTable = Database.GetDatatable(oSql)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user