TaskMan:
- continuo porting (NON ok...)
This commit is contained in:
@@ -0,0 +1,63 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
#nullable disable
|
||||
// <Auto-Generated>
|
||||
// This is here so CodeMaid doesn't reorganize this document
|
||||
// </Auto-Generated>
|
||||
namespace MP.TaskMan.Models
|
||||
{
|
||||
[Table("TaskExec")]
|
||||
public partial class TaskExecModel
|
||||
{
|
||||
#region Public Properties
|
||||
|
||||
[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||
public int TaskExecId { get; set; } = 0;
|
||||
|
||||
/// <summary>
|
||||
/// task Id di riferimento
|
||||
/// </summary>
|
||||
public int TaskId { get; set; } = 0;
|
||||
|
||||
/// <summary>
|
||||
/// DataOra inizio
|
||||
/// </summary>
|
||||
public DateTime DtStart { get; set; } = DateTime.Now;
|
||||
|
||||
/// <summary>
|
||||
/// DataOra fine
|
||||
/// </summary>
|
||||
public DateTime DtEnd { get; set; } = DateTime.Now.AddDays(-1);
|
||||
|
||||
/// <summary>
|
||||
/// Durata ultima esecuzione in secondi
|
||||
/// </summary>
|
||||
[NotMapped]
|
||||
public double Duration
|
||||
{
|
||||
get => DtEnd.Subtract(DtStart).TotalSeconds;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Esito in Errore
|
||||
/// </summary>
|
||||
public bool IsError { get; set; } = false;
|
||||
|
||||
/// <summary>
|
||||
/// Ultimo risultato registrato
|
||||
/// </summary>
|
||||
public string Result { get; set; } = "";
|
||||
|
||||
/// <summary>
|
||||
/// Navigazione oggetto TaskList
|
||||
/// </summary>
|
||||
[ForeignKey("TaskId")]
|
||||
public virtual TaskListModel TaskListNav { get; set; } = null!;
|
||||
|
||||
|
||||
#endregion Public Properties
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user