Exemplo n.º 1
0
        /// <summary>
        /// Converts this instance of <see cref="componentfieldvaluesrecommendation"/> to an instance of <see cref="componentfieldvaluesrecommendationDto"/>.
        /// </summary>
        /// <param name="entity"><see cref="componentfieldvaluesrecommendation"/> to convert.</param>
        public static componentfieldvaluesrecommendationDto ToDTO(this componentfieldvaluesrecommendation entity)
        {
            if (entity == null)
            {
                return(null);
            }

            var dto = new componentfieldvaluesrecommendationDto();

            dto.v_ComponentFieldValuesRecommendationId = entity.v_ComponentFieldValuesRecommendationId;
            dto.v_ComponentFieldValuesId             = entity.v_ComponentFieldValuesId;
            dto.v_MasterRecommendationRestricctionId = entity.v_MasterRecommendationRestricctionId;
            dto.i_IsDeleted    = entity.i_IsDeleted;
            dto.i_InsertUserId = entity.i_InsertUserId;
            dto.d_InsertDate   = entity.d_InsertDate;
            dto.i_UpdateUserId = entity.i_UpdateUserId;
            dto.d_UpdateDate   = entity.d_UpdateDate;

            entity.OnDTO(dto);

            return(dto);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Converts this instance of <see cref="componentfieldvaluesrecommendationDto"/> to an instance of <see cref="componentfieldvaluesrecommendation"/>.
        /// </summary>
        /// <param name="dto"><see cref="componentfieldvaluesrecommendationDto"/> to convert.</param>
        public static componentfieldvaluesrecommendation ToEntity(this componentfieldvaluesrecommendationDto dto)
        {
            if (dto == null)
            {
                return(null);
            }

            var entity = new componentfieldvaluesrecommendation();

            entity.v_ComponentFieldValuesRecommendationId = dto.v_ComponentFieldValuesRecommendationId;
            entity.v_ComponentFieldValuesId             = dto.v_ComponentFieldValuesId;
            entity.v_MasterRecommendationRestricctionId = dto.v_MasterRecommendationRestricctionId;
            entity.i_IsDeleted    = dto.i_IsDeleted;
            entity.i_InsertUserId = dto.i_InsertUserId;
            entity.d_InsertDate   = dto.d_InsertDate;
            entity.i_UpdateUserId = dto.i_UpdateUserId;
            entity.d_UpdateDate   = dto.d_UpdateDate;

            dto.OnEntity(entity);

            return(entity);
        }
Exemplo n.º 3
0
 /// <summary>
 /// Invoked when <see cref="ToEntity"/> operation is about to return.
 /// </summary>
 /// <param name="entity"><see cref="componentfieldvaluesrecommendation"/> converted from <see cref="componentfieldvaluesrecommendationDto"/>.</param>
 static partial void OnEntity(this componentfieldvaluesrecommendationDto dto, componentfieldvaluesrecommendation entity);
Exemplo n.º 4
0
 /// <summary>
 /// Invoked when <see cref="ToDTO"/> operation is about to return.
 /// </summary>
 /// <param name="dto"><see cref="componentfieldvaluesrecommendationDto"/> converted from <see cref="componentfieldvaluesrecommendation"/>.</param>
 static partial void OnDTO(this componentfieldvaluesrecommendation entity, componentfieldvaluesrecommendationDto dto);