using System; using System.Data; using System.Data.Entity; using System.ComponentModel.DataAnnotations; namespace PalGain.Core.Tasks { public partial class ScheduleTask : BaseEntity { [StringLength(1000)] /// /// Gets or sets the name /// public string Name { get; set; } /// /// Gets or sets the run period (in seconds) /// public int Seconds { get; set; } [StringLength(1000)] /// /// Gets or sets the type of appropriate ITask class /// public string Type { get; set; } /// /// Gets or sets the value indicating whether a task is enabled /// public bool Enabled { get; set; } /// /// Gets or sets the value indicating whether a task should be stopped on some error /// public bool StopOnError { get; set; } public DateTime? LastStartUtc { get; set; } public DateTime? LastEndUtc { get; set; } public DateTime? LastSuccessUtc { get; set; } } }