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

            var dto = new nodeorganizationlocationprofileDto();

            dto.i_NodeId         = entity.i_NodeId;
            dto.v_OrganizationId = entity.v_OrganizationId;
            dto.v_LocationId     = entity.v_LocationId;
            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="nodeorganizationlocationprofileDto"/> to an instance of <see cref="nodeorganizationlocationprofile"/>.
        /// </summary>
        /// <param name="dto"><see cref="nodeorganizationlocationprofileDto"/> to convert.</param>
        public static nodeorganizationlocationprofile ToEntity(this nodeorganizationlocationprofileDto dto)
        {
            if (dto == null)
            {
                return(null);
            }

            var entity = new nodeorganizationlocationprofile();

            entity.i_NodeId         = dto.i_NodeId;
            entity.v_OrganizationId = dto.v_OrganizationId;
            entity.v_LocationId     = dto.v_LocationId;
            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="nodeorganizationlocationprofile"/> converted from <see cref="nodeorganizationlocationprofileDto"/>.</param>
 static partial void OnEntity(this nodeorganizationlocationprofileDto dto, nodeorganizationlocationprofile entity);
 /// <summary>
 /// Invoked when <see cref="ToDTO"/> operation is about to return.
 /// </summary>
 /// <param name="dto"><see cref="nodeorganizationlocationprofileDto"/> converted from <see cref="nodeorganizationlocationprofile"/>.</param>
 static partial void OnDTO(this nodeorganizationlocationprofile entity, nodeorganizationlocationprofileDto dto);