/// <summary> /// Converts this instance of <see cref="blacklistperson"/> to an instance of <see cref="blacklistpersonDto"/>. /// </summary> /// <param name="entity"><see cref="blacklistperson"/> to convert.</param> public static blacklistpersonDto ToDTO(this blacklistperson entity) { if (entity == null) { return(null); } var dto = new blacklistpersonDto(); dto.v_BlackListPerson = entity.v_BlackListPerson; dto.v_PersonId = entity.v_PersonId; dto.v_Comment = entity.v_Comment; 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; dto.i_Status = entity.i_Status; dto.d_DateRegister = entity.d_DateRegister; dto.d_DateDetection = entity.d_DateDetection; dto.d_DateSolution = entity.d_DateSolution; entity.OnDTO(dto); return(dto); }
/// <summary> /// Converts this instance of <see cref="blacklistpersonDto"/> to an instance of <see cref="blacklistperson"/>. /// </summary> /// <param name="dto"><see cref="blacklistpersonDto"/> to convert.</param> public static blacklistperson ToEntity(this blacklistpersonDto dto) { if (dto == null) { return(null); } var entity = new blacklistperson(); entity.v_BlackListPerson = dto.v_BlackListPerson; entity.v_PersonId = dto.v_PersonId; entity.v_Comment = dto.v_Comment; 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; entity.i_Status = dto.i_Status; entity.d_DateRegister = dto.d_DateRegister; entity.d_DateDetection = dto.d_DateDetection; entity.d_DateSolution = dto.d_DateSolution; dto.OnEntity(entity); return(entity); }
/// <summary> /// Invoked when <see cref="ToEntity"/> operation is about to return. /// </summary> /// <param name="entity"><see cref="blacklistperson"/> converted from <see cref="blacklistpersonDto"/>.</param> static partial void OnEntity(this blacklistpersonDto dto, blacklistperson entity);
/// <summary> /// Invoked when <see cref="ToDTO"/> operation is about to return. /// </summary> /// <param name="dto"><see cref="blacklistpersonDto"/> converted from <see cref="blacklistperson"/>.</param> static partial void OnDTO(this blacklistperson entity, blacklistpersonDto dto);