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

            var dto = new serversyncstatusDto();

            dto.i_NodeId  = entity.i_NodeId;
            dto.i_Enabled = entity.i_Enabled;

            entity.OnDTO(dto);

            return(dto);
        }
        /// <summary>
        /// Converts this instance of <see cref="serversyncstatusDto"/> to an instance of <see cref="serversyncstatus"/>.
        /// </summary>
        /// <param name="dto"><see cref="serversyncstatusDto"/> to convert.</param>
        public static serversyncstatus ToEntity(this serversyncstatusDto dto)
        {
            if (dto == null)
            {
                return(null);
            }

            var entity = new serversyncstatus();

            entity.i_NodeId  = dto.i_NodeId;
            entity.i_Enabled = dto.i_Enabled;

            dto.OnEntity(entity);

            return(entity);
        }
 /// <summary>
 /// Invoked when <see cref="ToEntity"/> operation is about to return.
 /// </summary>
 /// <param name="entity"><see cref="serversyncstatus"/> converted from <see cref="serversyncstatusDto"/>.</param>
 static partial void OnEntity(this serversyncstatusDto dto, serversyncstatus entity);
 /// <summary>
 /// Invoked when <see cref="ToDTO"/> operation is about to return.
 /// </summary>
 /// <param name="dto"><see cref="serversyncstatusDto"/> converted from <see cref="serversyncstatus"/>.</param>
 static partial void OnDTO(this serversyncstatus entity, serversyncstatusDto dto);