2024-07-04 11:02:45 +05:00
|
|
|
using System.ComponentModel.DataAnnotations;
|
2024-01-16 13:24:42 +05:00
|
|
|
|
2024-08-19 10:01:07 +05:00
|
|
|
namespace AsbCloudApp.Data;
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Описание данных для бурильщика
|
|
|
|
/// </summary>
|
|
|
|
public class DrillerDto : IId
|
2022-05-20 18:19:52 +05:00
|
|
|
{
|
|
|
|
/// <summary>
|
2024-08-19 10:01:07 +05:00
|
|
|
/// Идентификатор в БД
|
2022-05-20 18:19:52 +05:00
|
|
|
/// </summary>
|
2024-08-19 10:01:07 +05:00
|
|
|
[Required]
|
|
|
|
public int Id { get; set; }
|
2024-01-16 13:24:42 +05:00
|
|
|
|
2024-08-19 10:01:07 +05:00
|
|
|
/// <summary>
|
|
|
|
/// Имя
|
|
|
|
/// </summary>
|
|
|
|
[Required]
|
|
|
|
public string Name { get; set; } = null!;
|
2022-05-31 16:36:24 +05:00
|
|
|
|
2024-08-19 10:01:07 +05:00
|
|
|
/// <summary>
|
|
|
|
/// Фамилия
|
|
|
|
/// </summary>
|
|
|
|
[Required]
|
|
|
|
public string Surname { get; set; } = null!;
|
2022-05-31 16:36:24 +05:00
|
|
|
|
2024-08-19 10:01:07 +05:00
|
|
|
/// <summary>
|
|
|
|
/// Отчество
|
|
|
|
/// </summary>
|
|
|
|
public string? Patronymic { get; set; }
|
2024-09-02 09:43:21 +05:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Полное имя
|
|
|
|
/// </summary>
|
|
|
|
public string FullName => $"{Surname} {Name} {Patronymic}";
|
2022-05-20 18:19:52 +05:00
|
|
|
}
|