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

            var dto = new servernodesyncDto();

            dto.i_NodeId                        = entity.i_NodeId;
            dto.v_DataSyncVersion               = entity.v_DataSyncVersion;
            dto.i_DataSyncFrecuency             = entity.i_DataSyncFrecuency;
            dto.i_Enabled                       = entity.i_Enabled;
            dto.d_LastSuccessfulDataSync        = entity.d_LastSuccessfulDataSync;
            dto.i_LastServerProcessStatus       = entity.i_LastServerProcessStatus;
            dto.i_LastNodeProcessStatus         = entity.i_LastNodeProcessStatus;
            dto.d_NextDataSync                  = entity.d_NextDataSync;
            dto.v_LastServerPackageFileName     = entity.v_LastServerPackageFileName;
            dto.v_LastServerProcessErrorMessage = entity.v_LastServerProcessErrorMessage;
            dto.v_LastNodePackageFileName       = entity.v_LastNodePackageFileName;
            dto.v_LastNodeProcessErrorMessage   = entity.v_LastNodeProcessErrorMessage;

            entity.OnDTO(dto);

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

            var entity = new servernodesync();

            entity.i_NodeId                        = dto.i_NodeId;
            entity.v_DataSyncVersion               = dto.v_DataSyncVersion;
            entity.i_DataSyncFrecuency             = dto.i_DataSyncFrecuency;
            entity.i_Enabled                       = dto.i_Enabled;
            entity.d_LastSuccessfulDataSync        = dto.d_LastSuccessfulDataSync;
            entity.i_LastServerProcessStatus       = dto.i_LastServerProcessStatus;
            entity.i_LastNodeProcessStatus         = dto.i_LastNodeProcessStatus;
            entity.d_NextDataSync                  = dto.d_NextDataSync;
            entity.v_LastServerPackageFileName     = dto.v_LastServerPackageFileName;
            entity.v_LastServerProcessErrorMessage = dto.v_LastServerProcessErrorMessage;
            entity.v_LastNodePackageFileName       = dto.v_LastNodePackageFileName;
            entity.v_LastNodeProcessErrorMessage   = dto.v_LastNodeProcessErrorMessage;

            dto.OnEntity(entity);

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