Added DTO classes for Connection, Endpoint, EndpointAuth, EndpointParam, Profile, and RecAction. Updated AutoMapper profiles, DbContext, and command handlers to use DTOs instead of domain entities. This decouples the application layer from the domain model, improving maintainability and flexibility. Cleaned up some using directives and file headers.
22 lines
462 B
C#
22 lines
462 B
C#
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; }
|
|
} |