38 lines
874 B
C#

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 int Id { 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}";
}
}