/// <summary>
        /// Converts this instance of <see cref="systemusergobalprofile"/> to an instance of <see cref="systemusergobalprofileDto"/>.
        /// </summary>
        /// <param name="entity"><see cref="systemusergobalprofile"/> to convert.</param>
        public static systemusergobalprofileDto ToDTO(this systemusergobalprofile entity)
        {
            if (entity == null)
            {
                return(null);
            }

            var dto = new systemusergobalprofileDto();

            dto.i_SystemUserId           = entity.i_SystemUserId;
            dto.i_ApplicationHierarchyId = entity.i_ApplicationHierarchyId;
            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);
        }
        /// <summary>
        /// Converts this instance of <see cref="systemusergobalprofileDto"/> to an instance of <see cref="systemusergobalprofile"/>.
        /// </summary>
        /// <param name="dto"><see cref="systemusergobalprofileDto"/> to convert.</param>
        public static systemusergobalprofile ToEntity(this systemusergobalprofileDto dto)
        {
            if (dto == null)
            {
                return(null);
            }

            var entity = new systemusergobalprofile();

            entity.i_SystemUserId           = dto.i_SystemUserId;
            entity.i_ApplicationHierarchyId = dto.i_ApplicationHierarchyId;
            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);
        }
 /// <summary>
 /// Invoked when <see cref="ToEntity"/> operation is about to return.
 /// </summary>
 /// <param name="entity"><see cref="systemusergobalprofile"/> converted from <see cref="systemusergobalprofileDto"/>.</param>
 static partial void OnEntity(this systemusergobalprofileDto dto, systemusergobalprofile entity);
 /// <summary>
 /// Invoked when <see cref="ToDTO"/> operation is about to return.
 /// </summary>
 /// <param name="dto"><see cref="systemusergobalprofileDto"/> converted from <see cref="systemusergobalprofile"/>.</param>
 static partial void OnDTO(this systemusergobalprofile entity, systemusergobalprofileDto dto);