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

            var dto = new occupationDto();

            dto.v_OccupationId      = entity.v_OccupationId;
            dto.v_GesId             = entity.v_GesId;
            dto.v_GroupOccupationId = entity.v_GroupOccupationId;
            dto.v_Name         = entity.v_Name;
            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);
        }