using System.ComponentModel; namespace ProjectLibrary.Entites { public class TicketExtensions { public int Id { get; private set; } [Browsable(false)] public int ReaderID { get; private set; } [DisplayName("ФИО читателя")] public string ReaderName { get; private set; } [DisplayName("Последняя дата обновления")] public DateTime LastUpdateDate { get; private set; } [DisplayName("Следущая дата обновления")] public DateTime NextUpdateDate { get; private set; } public static TicketExtensions CreateEntity(int id, int readerID, DateTime lastUpdateDate, DateTime nextUpdateDate) { return new TicketExtensions { Id = id, ReaderID = readerID, LastUpdateDate = lastUpdateDate, NextUpdateDate = nextUpdateDate }; } } }