songjun
2024-09-04 cc908053e0b5075fbfd27350b6da4b39bca9e550
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
using System;
using System.Data;
using System.Data.Entity;
using System.ComponentModel.DataAnnotations;
 
namespace PalGain.Core.Tasks
{
    public partial class ScheduleTask : BaseEntity
    {
        [StringLength(1000)]
        /// <summary>
        /// Gets or sets the name
        /// </summary>
        public string Name { get; set; }
 
        /// <summary>
        /// Gets or sets the run period (in seconds)
        /// </summary>
        public int Seconds { get; set; }
        [StringLength(1000)]
 
        /// <summary>
        /// Gets or sets the type of appropriate ITask class
        /// </summary>
        public string Type { get; set; }
 
        /// <summary>
        /// Gets or sets the value indicating whether a task is enabled
        /// </summary>
        public bool Enabled { get; set; }
 
        /// <summary>
        /// Gets or sets the value indicating whether a task should be stopped on some error
        /// </summary>
        public bool StopOnError { get; set; }
 
        public DateTime? LastStartUtc { get; set; }
 
        public DateTime? LastEndUtc { get; set; }
 
        public DateTime? LastSuccessUtc { get; set; }
    }
}