using System; using System.ComponentModel.DataAnnotations.Schema; namespace FrameworkDAL.DTO.SchedulerTaskGenerator { public class JobDefinitionDTO { public int JobId { get; set; } public string JobName { get; set; } = string.Empty; public int SchedulerId { get; set; } public int WebServiceId { get; set; } public int CriteriaConfigId { get; set; } public DateTime? LastRunTime { get; set; } // LASTRUNTIME public byte? SourceType { get; set; } // tinyint public int CreatedById { get; set; } public DateTime CreatedOn { get; set; } public int ModifiedById { get; set; } public DateTime ModifiedOn { get; set; } public int MenuId { get; set; } public byte? Type { get; set; } // tinyint public string? UriParameterValue { get; set; } public int TenantId { get; set; } public byte Status { get; set; } // tinyint public string? Remarks { get; set; } [NotMapped] public string DisplayName => string.IsNullOrWhiteSpace(TypeString) ? JobName : $"{JobName} ({TypeString})"; [NotMapped] public string TypeString { get; set; } = string.Empty; // converted from Type for DTO usage } }