Beispiel #1
0
        public static PsaParametersSetEntity FromDtoToEntity(PsaParametersSetDto source)
        {
            PsaParametersSetEntity target = new PsaParametersSetEntity();

            target.Id = source.Id;
            target.PsaTraceEntityId     = source.PsaTraceId;
            target.Type                 = source.Type;
            target.EcuLabel             = source.EcuLabel;
            target.EcuName              = source.EcuName;
            target.OriginalTypeId       = source.OriginalTypeId;
            target.AdditionalSourceInfo = source.AdditionalSourceInfo;
            foreach (PsaParameterDataDto parameter in source.Parameters)
            {
                target.PsaParameterData.Add(PsaParameterDataAssembler.FromDtoToEntity(parameter));
            }
            return(target);
        }
Beispiel #2
0
        public static PsaParametersSet FromEntityToDomainObject(PsaParametersSetEntity source)
        {
            PsaParametersSet target = new PsaParametersSet();

            target.Id                   = source.Id;
            target.PsaTraceId           = source.PsaTraceEntityId;
            target.Type                 = (PsaParametersSetType)source.Type;
            target.EcuLabel             = source.EcuLabel;
            target.EcuName              = source.EcuName;
            target.OriginalTypeId       = source.OriginalTypeId;
            target.AdditionalSourceInfo = source.AdditionalSourceInfo;
            foreach (PsaParameterDataEntity parameter in source.PsaParameterData)
            {
                target.Parameters.Add(PsaParameterDataAssembler.FromEntityToDomainObject(parameter));
            }
            return(target);
        }
Beispiel #3
0
        public static PsaParametersSetDto FromEntityToDto(PsaParametersSetEntity source)
        {
            PsaParametersSetDto target = new PsaParametersSetDto();

            target.Parameters           = new List <PsaParameterDataDto>();
            target.Id                   = source.Id;
            target.PsaTraceId           = source.PsaTraceEntityId;
            target.Type                 = source.Type;
            target.EcuLabel             = source.EcuLabel;
            target.EcuName              = source.EcuName;
            target.OriginalTypeId       = source.OriginalTypeId;
            target.AdditionalSourceInfo = source.AdditionalSourceInfo;
            foreach (PsaParameterDataEntity parameter in source.PsaParameterData)
            {
                target.Parameters.Add(PsaParameterDataAssembler.FromEntityToDto(parameter));
            }
            return(target);
        }