Ejemplo n.º 1
0
        public static AnalyticStatisticsValue FromEntityToDomainObject(AnalyticStatisticsValueEntity source)
        {
            AnalyticStatisticsValue target = new AnalyticStatisticsValue(
                source.Value,
                source.SourceVehicleVin,
                source.SourcePsaParametersSetId,
                source.SourceDataCaptureDateTime);

            target.Id = source.Id;
            target.AnalyticStatisticsItemId = source.AnalyticStatisticsItemId;
            return(target);
        }
Ejemplo n.º 2
0
        public static AnalyticStatisticsValueDto FromEntityToDto(AnalyticStatisticsValueEntity source)
        {
            AnalyticStatisticsValueDto target = new AnalyticStatisticsValueDto();

            target.Id = source.Id;
            target.AnalyticStatisticsItemId  = source.AnalyticStatisticsItemId;
            target.SourceDataCaptureDateTime = source.SourceDataCaptureDateTime;
            target.SourcePsaParametersSetId  = source.SourcePsaParametersSetId;
            target.SourceVin = source.SourceVehicleVin;
            target.Value     = source.Value;
            return(target);
        }
Ejemplo n.º 3
0
        public static AnalyticStatisticsValueEntity FromDomainObjectToEntity(
            AnalyticStatisticsValue source)
        {
            AnalyticStatisticsValueEntity target = new AnalyticStatisticsValueEntity();

            target.Id = source.Id;
            target.AnalyticStatisticsItemId  = source.AnalyticStatisticsItemId;
            target.SourceDataCaptureDateTime = source.SourceDataCaptureDateTime;
            target.SourcePsaParametersSetId  = source.SourcePsaParametersSetId;
            target.SourceVehicleVin          = source.SourceVin;
            target.Value = source.Value;
            return(target);
        }