Exemplo n.º 1
0
        public static DB.SlaveStatistics ToEntity(DT.SlaveStatistics source)
        {
            if (source == null)
            {
                return(null);
            }
            var entity = new DB.SlaveStatistics(); ToEntity(source, entity);

            return(entity);
        }
Exemplo n.º 2
0
 public static void ToEntity(DT.SlaveStatistics source, DB.SlaveStatistics target)
 {
     if ((source != null) && (target != null))
     {
         target.StatisticsId   = source.Id;
         target.SlaveId        = source.SlaveId;
         target.Cores          = source.Cores;
         target.CpuUtilization = source.CpuUtilization;
         target.FreeCores      = source.FreeCores;
         target.FreeMemory     = source.FreeMemory;
         target.Memory         = source.Memory;
     }
 }