Ejemplo n.º 1
0
        private BenchmarkResultEntity MapEntity(BenchmarkResult model)
        {
            var result = new BenchmarkResultEntity()
            {
                Id = model.Id,
                BenchmarkResultId = model.BenchmarkResultId,
                Benchmark         = model.Benchmark,
                Category          = model.Category,
                SubCategory       = model.SubCategory,
                Value             = model.Value,
                UnitsOfMeasure    = model.UnitsOfMeasure,
                CpuId             = model.CpuId,
                FileName          = model.FileName,
                Output            = model.Output,
            };

            return(result);
        }
Ejemplo n.º 2
0
        private BenchmarkResult MapModel(BenchmarkResultEntity cpuEntity)
        {
            var result = new BenchmarkResult()
            {
                Id = cpuEntity.Id,
                BenchmarkResultId = cpuEntity.BenchmarkResultId,
                Benchmark         = cpuEntity.Benchmark,
                Category          = cpuEntity.Category,
                SubCategory       = cpuEntity.SubCategory,
                Value             = cpuEntity.Value,
                UnitsOfMeasure    = cpuEntity.UnitsOfMeasure,
                CpuId             = cpuEntity.CpuId,
                FileName          = cpuEntity.FileName,
                Output            = cpuEntity.Output,
            };

            return(result);
        }