Make ResultViewDto immutable; add Root property
Refactored ResultViewDto to use init-only properties for immutability. Added a new Root property of type OutResDto?. Included a using directive for ReC.Domain.Entities to support the new property.
This commit is contained in:
@@ -1,32 +1,36 @@
|
||||
namespace ReC.Application.Common.Dto;
|
||||
using ReC.Domain.Entities;
|
||||
|
||||
namespace ReC.Application.Common.Dto;
|
||||
|
||||
public record ResultViewDto
|
||||
{
|
||||
public long Id { get; set; }
|
||||
public long Id { get; init; }
|
||||
|
||||
public long? ActionId { get; set; }
|
||||
public OutResDto? Root { get; init; }
|
||||
|
||||
public RecActionViewDto? Action { get; set; }
|
||||
public long? ActionId { get; init; }
|
||||
|
||||
public long? ProfileId { get; set; }
|
||||
public RecActionViewDto? Action { get; init; }
|
||||
|
||||
public ProfileViewDto? Profile { get; set; }
|
||||
public long? ProfileId { get; init; }
|
||||
|
||||
public string? ProfileName { get; set; }
|
||||
public ProfileViewDto? Profile { get; init; }
|
||||
|
||||
public short? StatusCode { get; set; }
|
||||
public string? ProfileName { get; init; }
|
||||
|
||||
public string? StatusName { get; set; }
|
||||
public short? StatusCode { get; init; }
|
||||
|
||||
public string? Header { get; set; }
|
||||
public string? StatusName { get; init; }
|
||||
|
||||
public string? Body { get; set; }
|
||||
public string? Header { get; init; }
|
||||
|
||||
public string? AddedWho { get; set; }
|
||||
public string? Body { get; init; }
|
||||
|
||||
public DateTime? AddedWhen { get; set; }
|
||||
public string? AddedWho { get; init; }
|
||||
|
||||
public string? ChangedWho { get; set; }
|
||||
public DateTime? AddedWhen { get; init; }
|
||||
|
||||
public DateTime? ChangedWhen { get; set; }
|
||||
public string? ChangedWho { get; init; }
|
||||
|
||||
public DateTime? ChangedWhen { get; init; }
|
||||
}
|
||||
Reference in New Issue
Block a user