From bd78ada686157886f8dcdb0c0721f92c11d239a7 Mon Sep 17 00:00:00 2001 From: TekH Date: Thu, 26 Mar 2026 15:48:49 +0100 Subject: [PATCH] Remove all DTO class definitions from application Deleted the contents of several DTO files, including ConnectionDto, EndpointAuthDto, EndpointDto, EndpointParamDto, OutResDto, ProfileDto, and RecActionDto. These files previously contained record definitions for data transfer objects used throughout the application. All related code, including properties and using directives, has been removed, leaving the files empty. --- .../Common/Dto/ConnectionDto.cs | 32 ----------- .../Common/Dto/EndpointAuthDto.cs | 39 -------------- src/ReC.Application/Common/Dto/EndpointDto.cs | 22 -------- .../Common/Dto/EndpointParamDto.cs | 33 ------------ src/ReC.Application/Common/Dto/OutResDto.cs | 40 -------------- src/ReC.Application/Common/Dto/ProfileDto.cs | 30 ----------- .../Common/Dto/RecActionDto.cs | 53 ------------------- 7 files changed, 249 deletions(-) delete mode 100644 src/ReC.Application/Common/Dto/ConnectionDto.cs delete mode 100644 src/ReC.Application/Common/Dto/EndpointAuthDto.cs delete mode 100644 src/ReC.Application/Common/Dto/EndpointDto.cs delete mode 100644 src/ReC.Application/Common/Dto/EndpointParamDto.cs delete mode 100644 src/ReC.Application/Common/Dto/OutResDto.cs delete mode 100644 src/ReC.Application/Common/Dto/ProfileDto.cs delete mode 100644 src/ReC.Application/Common/Dto/RecActionDto.cs diff --git a/src/ReC.Application/Common/Dto/ConnectionDto.cs b/src/ReC.Application/Common/Dto/ConnectionDto.cs deleted file mode 100644 index 7f45796..0000000 --- a/src/ReC.Application/Common/Dto/ConnectionDto.cs +++ /dev/null @@ -1,32 +0,0 @@ -namespace ReC.Application.Common.Dto; - -public record ConnectionDto -{ - public short? Id { get; set; } - - public string? Bezeichnung { get; set; } - - public string? SqlProvider { get; set; } - - public string? Server { get; set; } - - public string? Datenbank { get; set; } - - public string? Username { get; set; } - - public string? Password { get; set; } - - public string? Bemerkung { get; set; } - - public bool? Aktiv { get; set; } - - public string? ErstelltWer { get; set; } - - public DateTime? ErstelltWann { get; set; } - - public string? GeandertWer { get; set; } - - public DateTime? GeaendertWann { get; set; } - - public bool? SysConnection { get; set; } -} \ No newline at end of file diff --git a/src/ReC.Application/Common/Dto/EndpointAuthDto.cs b/src/ReC.Application/Common/Dto/EndpointAuthDto.cs deleted file mode 100644 index 668a9f0..0000000 --- a/src/ReC.Application/Common/Dto/EndpointAuthDto.cs +++ /dev/null @@ -1,39 +0,0 @@ -using ReC.Domain.Constants; -using System.ComponentModel.DataAnnotations.Schema; - -namespace ReC.Application.Common.Dto; - -public record EndpointAuthDto -{ - public long? Id { get; set; } - - public bool? Active { get; set; } - - public string? Description { get; set; } - - public EndpointAuthType? Type { get; set; } - - public string? ApiKey { get; set; } - - public string? ApiValue { get; set; } - - public ApiKeyLocation? ApiKeyAddTo { get; set; } - - public string? Token { get; set; } - - public string? Username { get; set; } - - public string? Password { get; set; } - - public string? Domain { get; set; } - - public string? Workstation { get; set; } - - public string? AddedWho { get; set; } - - public DateTime? AddedWhen { get; set; } - - public string? ChangedWho { get; set; } - - public DateTime? ChangedWhen { get; set; } -} diff --git a/src/ReC.Application/Common/Dto/EndpointDto.cs b/src/ReC.Application/Common/Dto/EndpointDto.cs deleted file mode 100644 index 3505d50..0000000 --- a/src/ReC.Application/Common/Dto/EndpointDto.cs +++ /dev/null @@ -1,22 +0,0 @@ -using System.ComponentModel.DataAnnotations.Schema; - -namespace ReC.Application.Common.Dto; - -public record EndpointDto -{ - public long Id { get; set; } - - public bool? Active { get; set; } - - public string? Description { get; set; } - - public string? Uri { get; set; } - - public string? AddedWho { get; set; } - - public DateTime? AddedWhen { get; set; } - - public string? ChangedWho { get; set; } - - public DateTime? ChangedWhen { get; set; } -} \ No newline at end of file diff --git a/src/ReC.Application/Common/Dto/EndpointParamDto.cs b/src/ReC.Application/Common/Dto/EndpointParamDto.cs deleted file mode 100644 index 7b7343c..0000000 --- a/src/ReC.Application/Common/Dto/EndpointParamDto.cs +++ /dev/null @@ -1,33 +0,0 @@ -using System.ComponentModel.DataAnnotations.Schema; - -namespace ReC.Application.Common.Dto; - -/// -/// Represents the TBREC_CFG_ENDPOINT_PARAMS table. -/// All properties are nullable to provide flexibility on the database side, -/// preventing breaking changes if columns are altered to be nullable in production. -/// -public record EndpointParamDto -{ - public long? Id { get; set; } - - public bool? Active { get; set; } - - public string? Description { get; set; } - - public short? GroupId { get; set; } - - public byte? Sequence { get; set; } - - public string? Key { get; set; } - - public string? Value { get; set; } - - public string? AddedWho { get; set; } - - public DateTime? AddedWhen { get; set; } - - public string? ChangedWho { get; set; } - - public DateTime? ChangedWhen { get; set; } -} \ No newline at end of file diff --git a/src/ReC.Application/Common/Dto/OutResDto.cs b/src/ReC.Application/Common/Dto/OutResDto.cs deleted file mode 100644 index 87a2820..0000000 --- a/src/ReC.Application/Common/Dto/OutResDto.cs +++ /dev/null @@ -1,40 +0,0 @@ -using ReC.Domain.Constants; - -namespace ReC.Application.Common.Dto; - -public record OutResDto -{ - public long Id { get; set; } - - public long? ActionId { get; set; } - - public RecActionDto? Action { get; set; } - - public long? ProfileId { get; set; } - - public ProfileDto? Profile { get; set; } - - public string? ProfileName { get; set; } - - public short? StatusCode { get; set; } - - public string? StatusName { get; set; } - - public ResultType? Type { get; set; } - - public string? Header { get; set; } - - public string? Body { get; set; } - - public string? Info { get; set; } - - public string? Error { get; set; } - - public string? AddedWho { get; set; } - - public DateTime? AddedWhen { get; set; } - - public string? ChangedWho { get; set; } - - public DateTime? ChangedWhen { get; set; } -} diff --git a/src/ReC.Application/Common/Dto/ProfileDto.cs b/src/ReC.Application/Common/Dto/ProfileDto.cs deleted file mode 100644 index 119ac82..0000000 --- a/src/ReC.Application/Common/Dto/ProfileDto.cs +++ /dev/null @@ -1,30 +0,0 @@ -using System.ComponentModel.DataAnnotations.Schema; - -namespace ReC.Application.Common.Dto; - -public record ProfileDto -{ - public long Id { get; set; } - - public bool? Active { get; set; } - - public string? Type { get; set; } - - public string? Mandantor { get; set; } - - public string? Name { get; set; } - - public string? Description { get; set; } - - public string? LogLevel { get; set; } - - public string? Language { get; set; } - - public string? AddedWho { get; set; } - - public DateTime? AddedWhen { get; set; } - - public string? ChangedWho { get; set; } - - public DateTime? ChangedWhen { get; set; } -} \ No newline at end of file diff --git a/src/ReC.Application/Common/Dto/RecActionDto.cs b/src/ReC.Application/Common/Dto/RecActionDto.cs deleted file mode 100644 index 386de79..0000000 --- a/src/ReC.Application/Common/Dto/RecActionDto.cs +++ /dev/null @@ -1,53 +0,0 @@ -using ReC.Domain.Constants; -using System.ComponentModel.DataAnnotations.Schema; - -namespace ReC.Application.Common.Dto; - -public record RecActionDto -{ - public long? Id { get; set; } - - public long? ProfileId { get; set; } - - public ProfileDto? Profile { get; set; } - - public bool? Active { get; set; } - - public byte? Sequence { get; set; } - - public long? EndpointId { get; set; } - - public EndpointDto? Endpoint { get; set; } - - public long? EndpointAuthId { get; set; } - - public EndpointAuthDto? EndpointAuth { get; set; } - - public short? EndpointParamsId { get; set; } - - public short? SqlConnectionId { get; set; } - - public ConnectionDto? SqlConnection { get; set; } - - public string? Type { get; set; } - - public string? PreprocessingQuery { get; set; } - - public string? HeaderQuery { get; set; } - - public string? BodyQuery { get; set; } - - public string? PostprocessingQuery { get; set; } - - public ErrorAction? ErrorAction { get; set; } - - public string? AddedWho { get; set; } - - public DateTime? AddedWhen { get; set; } - - public string? ChangedWho { get; set; } - - public DateTime? ChangedWhen { get; set; } - - public OutResDto? OutRes { get; set; } -} \ No newline at end of file