/// <summary> /// Converts this instance of <see cref="ciiui"/> to an instance of <see cref="ciiuiDto"/>. /// </summary> /// <param name="entity"><see cref="ciiui"/> to convert.</param> public static ciiuiDto ToDTO(this ciiui entity) { if (entity == null) return null; var dto = new ciiuiDto(); dto.v_CIIUId = entity.v_CIIUId; dto.v_CIIUDescription1 = entity.v_CIIUDescription1; dto.v_CIIUDescription2 = entity.v_CIIUDescription2; 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="ciiuiDto"/> to an instance of <see cref="ciiui"/>. /// </summary> /// <param name="dto"><see cref="ciiuiDto"/> to convert.</param> public static ciiui ToEntity(this ciiuiDto dto) { if (dto == null) return null; var entity = new ciiui(); entity.v_CIIUId = dto.v_CIIUId; entity.v_CIIUDescription1 = dto.v_CIIUDescription1; entity.v_CIIUDescription2 = dto.v_CIIUDescription2; 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="ciiui"/> converted from <see cref="ciiuiDto"/>.</param> static partial void OnEntity(this ciiuiDto dto, ciiui entity);
/// <summary> /// Invoked when <see cref="ToDTO"/> operation is about to return. /// </summary> /// <param name="dto"><see cref="ciiuiDto"/> converted from <see cref="ciiui"/>.</param> static partial void OnDTO(this ciiui entity, ciiuiDto dto);