ProjectLib/ProjectLibrary/Entites/Reader.cs

22 lines
702 B
C#
Raw Normal View History

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
public static Reader CreateEntity(int id, string name, int readerTicket, DateTime registrationDateRT)
{
return new Reader
{
Id = id,
Name = name ?? string.Empty,
ReaderTicket = readerTicket,
RegistrationDateRT = registrationDateRT
};
}
}
}