using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
//
// This is here so CodeMaid doesn't reorganize this document
//
namespace MP.Data.DTO
{
public class StatDedupDTO
{
///
/// Macchina
///
public string IdxMacchina { get; set; } = "";
///
/// Cod Flusso interessato
///
public string CodFlux { get; set; } = "";
///
/// Tipo di intervallo richiesto
///
public Enum.DataInterval Interval { get; set; } = Enum.DataInterval.hour;
///
/// num max di item per intervallo
///
public int Num4Int { get; set; } = 1;
///
/// Num record processati (iniziali)
///
public int NumRec { get; set; } = 1;
///
/// Tempo processing (secondi)
///
public double ProcTime { get; set; } = 1;
///
/// Tempo processing atteso in ms per record
///
[NotMapped]
public double ProcTimeMs
{
get => (ProcTime * 1000) / (NumRec > 1 ? NumRec : 1);
}
}
}