Introduced a mapping configuration in `MappingProfile` to map `PObjectStateHist` to `ObjectStateHistDto`, including the `Intl` property and an array of `Others`. Added a new record `ObjectStateHistDto` with properties for `Intl`, `Others`, `ChangedWho`, and `ChangedWhen`, initializing `Others` to an empty array of strings.
16 lines
384 B
C#
16 lines
384 B
C#
namespace WorkFlow.Application.Dto;
|
|
|
|
public record ObjectStateHistDto
|
|
{
|
|
public virtual string? Intl { get; set; }
|
|
|
|
/// <summary>
|
|
/// Holds state 2, 3 and 4 as a list of strings.
|
|
/// </summary>
|
|
public IEnumerable<string> Others { get; set; } = Array.Empty<string>();
|
|
|
|
public string? ChangedWho { get; set; }
|
|
|
|
public DateTime? ChangedWhen { get; set; }
|
|
}
|