/// <summary> /// Converts this instance of <see cref="reportegerencialResult"/> to an instance of <see cref="reportegerencialResultDto"/>. /// </summary> /// <param name="entity"><see cref="reportegerencialResult"/> to convert.</param> public static reportegerencialResultDto ToDTO(this reportegerencialResult entity) { if (entity == null) { return(null); } var dto = new reportegerencialResultDto(); dto.Mes = entity.Mes; dto.Fecha = entity.Fecha; dto.TipoDocumento = entity.TipoDocumento; dto.Ingreso = entity.Ingreso; dto.Egreso = entity.Egreso; dto.Saldo = entity.Saldo; entity.OnDTO(dto); return(dto); }
/// <summary> /// Converts this instance of <see cref="reportegerencialResultDto"/> to an instance of <see cref="reportegerencialResult"/>. /// </summary> /// <param name="dto"><see cref="reportegerencialResultDto"/> to convert.</param> public static reportegerencialResult ToEntity(this reportegerencialResultDto dto) { if (dto == null) { return(null); } var entity = new reportegerencialResult(); entity.Mes = dto.Mes; entity.Fecha = dto.Fecha; entity.TipoDocumento = dto.TipoDocumento; entity.Ingreso = dto.Ingreso; entity.Egreso = dto.Egreso; entity.Saldo = dto.Saldo; dto.OnEntity(entity); return(entity); }
/// <summary> /// Invoked when <see cref="ToEntity"/> operation is about to return. /// </summary> /// <param name="entity"><see cref="reportegerencialResult"/> converted from <see cref="reportegerencialResultDto"/>.</param> static partial void OnEntity(this reportegerencialResultDto dto, reportegerencialResult entity);
/// <summary> /// Invoked when <see cref="ToDTO"/> operation is about to return. /// </summary> /// <param name="dto"><see cref="reportegerencialResultDto"/> converted from <see cref="reportegerencialResult"/>.</param> static partial void OnDTO(this reportegerencialResult entity, reportegerencialResultDto dto);