ProjectLib/ProjectLibrary/Entites/Ticket_Extension.cs

30 lines
942 B
C#
Raw Normal View History

2024-12-20 11:46:58 +04:00
using System.ComponentModel;
namespace ProjectLibrary.Entites
2024-11-12 23:13:20 +04:00
{
public class TicketExtensions
{
2024-12-08 13:24:07 +04:00
public int Id { get; private set; }
2024-12-20 11:46:58 +04:00
2024-12-20 15:49:09 +04:00
[DisplayName("Идентификационный номер читателя")]
2024-11-12 23:13:20 +04:00
public int ReaderID { get; private set; }
2024-12-20 11:46:58 +04:00
[DisplayName("Последняя дата обновления")]
2024-11-12 23:13:20 +04:00
public DateTime LastUpdateDate { get; private set; }
2024-12-20 11:46:58 +04:00
[DisplayName("Следущая дата обновления")]
2024-11-12 23:13:20 +04:00
public DateTime NextUpdateDate { get; private set; }
2024-12-08 13:24:07 +04:00
public static TicketExtensions CreateEntity(int id, int readerID, DateTime lastUpdateDate, DateTime nextUpdateDate)
2024-11-12 23:13:20 +04:00
{
return new TicketExtensions
{
2024-12-08 13:24:07 +04:00
Id = id,
2024-11-12 23:13:20 +04:00
ReaderID = readerID,
LastUpdateDate = lastUpdateDate,
NextUpdateDate = nextUpdateDate
};
}
}
}