/// <summary> /// Converts this instance of <see cref="rolcuotadetalle"/> to an instance of <see cref="rolcuotadetalleDto"/>. /// </summary> /// <param name="entity"><see cref="rolcuotadetalle"/> to convert.</param> public static rolcuotadetalleDto ToDTO(this rolcuotadetalle entity) { if (entity == null) { return(null); } var dto = new rolcuotadetalleDto(); dto.v_RolCuotaDetalleId = entity.v_RolCuotaDetalleId; dto.v_IdProducto = entity.v_IdProducto; dto.v_ProductoNombre = entity.v_ProductoNombre; dto.v_RolCuotaId = entity.v_RolCuotaId; dto.i_Cuota = entity.i_Cuota; 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.v_ComentaryUpdate = entity.v_ComentaryUpdate; entity.OnDTO(dto); return(dto); }
/// <summary> /// Converts this instance of <see cref="rolcuotadetalleDto"/> to an instance of <see cref="rolcuotadetalle"/>. /// </summary> /// <param name="dto"><see cref="rolcuotadetalleDto"/> to convert.</param> public static rolcuotadetalle ToEntity(this rolcuotadetalleDto dto) { if (dto == null) { return(null); } var entity = new rolcuotadetalle(); entity.v_RolCuotaDetalleId = dto.v_RolCuotaDetalleId; entity.v_IdProducto = dto.v_IdProducto; entity.v_ProductoNombre = dto.v_ProductoNombre; entity.v_RolCuotaId = dto.v_RolCuotaId; entity.i_Cuota = dto.i_Cuota; 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.v_ComentaryUpdate = dto.v_ComentaryUpdate; dto.OnEntity(entity); return(entity); }
/// <summary> /// Invoked when <see cref="ToEntity"/> operation is about to return. /// </summary> /// <param name="entity"><see cref="rolcuotadetalle"/> converted from <see cref="rolcuotadetalleDto"/>.</param> static partial void OnEntity(this rolcuotadetalleDto dto, rolcuotadetalle entity);
/// <summary> /// Invoked when <see cref="ToDTO"/> operation is about to return. /// </summary> /// <param name="dto"><see cref="rolcuotadetalleDto"/> converted from <see cref="rolcuotadetalle"/>.</param> static partial void OnDTO(this rolcuotadetalle entity, rolcuotadetalleDto dto);