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; }
|
}
|
}
|