2024-11-12 23:13:20 +04:00
|
|
|
|
namespace ProjectLibrary.Entities
|
|
|
|
|
{
|
|
|
|
|
public class Reader
|
|
|
|
|
{
|
|
|
|
|
public int Id { get; private set; }
|
|
|
|
|
public string Name { get; private set; } = string.Empty;
|
|
|
|
|
public int ReaderTicket { get; private set; }
|
|
|
|
|
public DateTime RegistrationDateRT { get; private set; } // Изменение на DateTime
|
|
|
|
|
|
2024-11-19 19:46:02 +04:00
|
|
|
|
public static Reader CreateEntity(int id, string name, int readerTicket)
|
2024-11-12 23:13:20 +04:00
|
|
|
|
{
|
|
|
|
|
return new Reader
|
|
|
|
|
{
|
|
|
|
|
Id = id,
|
|
|
|
|
Name = name ?? string.Empty,
|
|
|
|
|
ReaderTicket = readerTicket,
|
2024-11-19 19:46:02 +04:00
|
|
|
|
RegistrationDateRT = DateTime.Now
|
2024-11-12 23:13:20 +04:00
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|