Template-Attribut zu UserReadDto für EnvelopeGenerator hinzugefügt
This commit is contained in:
parent
0abdbfa705
commit
6dbc766247
@ -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(
|
||||
int Guid,
|
||||
string? Prename,
|
||||
string? Name,
|
||||
string Username,
|
||||
string? Shortname,
|
||||
string? Email,
|
||||
string Language,
|
||||
string? Comment,
|
||||
bool Deleted,
|
||||
string DateFormat,
|
||||
string AddedWho,
|
||||
bool Active
|
||||
);
|
||||
}
|
||||
public record UserReadDto()
|
||||
{
|
||||
public int Guid { get; set; }
|
||||
|
||||
public string? Prename { get; set; }
|
||||
|
||||
public string? Name { get; set; }
|
||||
|
||||
public string Username { get; set; }
|
||||
|
||||
public string? Shortname { get; set; }
|
||||
|
||||
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}";
|
||||
}
|
||||
}
|
||||
@ -29,6 +29,9 @@
|
||||
<Reference Include="DigitalData.Core.DTO">
|
||||
<HintPath>..\..\WebCoreModules\DigitalData.Core.Application\bin\Debug\net7.0\DigitalData.Core.DTO.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="DigitalData.EmailProfilerDispatcher.Domain">
|
||||
<HintPath>..\..\EmailProfilerDispatcher\DigitalData.EmailProfilerDispatcher.Domain\bin\Debug\net7.0\DigitalData.EmailProfilerDispatcher.Domain.dll</HintPath>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user