Template-Attribut zu UserReadDto für EnvelopeGenerator hinzugefügt

This commit is contained in:
Developer 02 2024-06-10 16:23:29 +02:00
parent 0abdbfa705
commit 6dbc766247
2 changed files with 40 additions and 16 deletions

View File

@ -1,17 +1,38 @@
namespace DigitalData.UserManager.Application.DTOs.User using System.ComponentModel.DataAnnotations.Schema;
using System.Text.Json.Serialization;
using DigitalData.EmailProfilerDispatcher.Domain.Attributes;
namespace DigitalData.UserManager.Application.DTOs.User
{ {
public record UserReadDto( public record UserReadDto()
int Guid, {
string? Prename, public int Guid { get; set; }
string? Name,
string Username, public string? Prename { get; set; }
string? Shortname,
string? Email, public string? Name { get; set; }
string Language,
string? Comment, public string Username { get; set; }
bool Deleted,
string DateFormat, public string? Shortname { get; set; }
string AddedWho,
bool Active public string? Email { get; set; }
);
} public string Language { get; set; }
public string? Comment { get; set; }
public bool Deleted { get; set; }
public string DateFormat { get; set; }
public string AddedWho { get; set; }
public bool Active { get; set; }
[JsonIgnore]
[NotMapped]
[TemplatePlaceholder("[NAME_SENDER]")]
public string FullName => $"{Prename} {Name}";
}
}

View File

@ -29,6 +29,9 @@
<Reference Include="DigitalData.Core.DTO"> <Reference Include="DigitalData.Core.DTO">
<HintPath>..\..\WebCoreModules\DigitalData.Core.Application\bin\Debug\net7.0\DigitalData.Core.DTO.dll</HintPath> <HintPath>..\..\WebCoreModules\DigitalData.Core.Application\bin\Debug\net7.0\DigitalData.Core.DTO.dll</HintPath>
</Reference> </Reference>
<Reference Include="DigitalData.EmailProfilerDispatcher.Domain">
<HintPath>..\..\EmailProfilerDispatcher\DigitalData.EmailProfilerDispatcher.Domain\bin\Debug\net7.0\DigitalData.EmailProfilerDispatcher.Domain.dll</HintPath>
</Reference>
</ItemGroup> </ItemGroup>
</Project> </Project>