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

            var dto = new notificationDto();

            dto.v_NotificationId      = entity.v_NotificationId;
            dto.v_OrganizationId      = entity.v_OrganizationId;
            dto.d_NotificationDate    = entity.d_NotificationDate;
            dto.v_PersonId            = entity.v_PersonId;
            dto.v_Title               = entity.v_Title;
            dto.v_Body                = entity.v_Body;
            dto.i_TypeNotificationId  = entity.i_TypeNotificationId;
            dto.d_ScheduleDate        = entity.d_ScheduleDate;
            dto.i_IsRead              = entity.i_IsRead;
            dto.i_StateNotificationId = entity.i_StateNotificationId;
            dto.v_Path                = entity.v_Path;
            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="notificationDto"/> to an instance of <see cref="notification"/>.
        /// </summary>
        /// <param name="dto"><see cref="notificationDto"/> to convert.</param>
        public static notification ToEntity(this notificationDto dto)
        {
            if (dto == null)
            {
                return(null);
            }

            var entity = new notification();

            entity.v_NotificationId      = dto.v_NotificationId;
            entity.v_OrganizationId      = dto.v_OrganizationId;
            entity.d_NotificationDate    = dto.d_NotificationDate;
            entity.v_PersonId            = dto.v_PersonId;
            entity.v_Title               = dto.v_Title;
            entity.v_Body                = dto.v_Body;
            entity.i_TypeNotificationId  = dto.i_TypeNotificationId;
            entity.d_ScheduleDate        = dto.d_ScheduleDate;
            entity.i_IsRead              = dto.i_IsRead;
            entity.i_StateNotificationId = dto.i_StateNotificationId;
            entity.v_Path                = dto.v_Path;
            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="notification"/> converted from <see cref="notificationDto"/>.</param>
 static partial void OnEntity(this notificationDto dto, notification entity);
 /// <summary>
 /// Invoked when <see cref="ToDTO"/> operation is about to return.
 /// </summary>
 /// <param name="dto"><see cref="notificationDto"/> converted from <see cref="notification"/>.</param>
 static partial void OnDTO(this notification entity, notificationDto dto);