forked from ddrilling/AsbCloudServer
38 lines
803 B
C#
38 lines
803 B
C#
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace AsbCloudApp.Data;
|
|
|
|
/// <summary>
|
|
/// Описание данных для бурильщика
|
|
/// </summary>
|
|
public class DrillerDto : IId
|
|
{
|
|
/// <summary>
|
|
/// Идентификатор в БД
|
|
/// </summary>
|
|
[Required]
|
|
public int Id { get; set; }
|
|
|
|
/// <summary>
|
|
/// Имя
|
|
/// </summary>
|
|
[Required]
|
|
public string Name { get; set; } = null!;
|
|
|
|
/// <summary>
|
|
/// Фамилия
|
|
/// </summary>
|
|
[Required]
|
|
public string Surname { get; set; } = null!;
|
|
|
|
/// <summary>
|
|
/// Отчество
|
|
/// </summary>
|
|
public string? Patronymic { get; set; }
|
|
|
|
/// <summary>
|
|
/// Полное имя
|
|
/// </summary>
|
|
public string FullName => $"{Surname} {Name} {Patronymic}";
|
|
}
|