public dxfrecuentedetalleDto(String v_DxFrecuenteDetalleId, String v_DxFrecuenteId, String v_MasterRecommendationRestricctionId, Nullable <Int32> i_IsDeleted, Nullable <Int32> i_InsertUserId, Nullable <DateTime> d_InsertDate, Nullable <Int32> i_UpdateUserId, Nullable <DateTime> d_UpdateDate, dxfrecuenteDto dxfrecuente) { this.v_DxFrecuenteDetalleId = v_DxFrecuenteDetalleId; this.v_DxFrecuenteId = v_DxFrecuenteId; this.v_MasterRecommendationRestricctionId = v_MasterRecommendationRestricctionId; this.i_IsDeleted = i_IsDeleted; this.i_InsertUserId = i_InsertUserId; this.d_InsertDate = d_InsertDate; this.i_UpdateUserId = i_UpdateUserId; this.d_UpdateDate = d_UpdateDate; this.dxfrecuente = dxfrecuente; }
/// <summary> /// Converts this instance of <see cref="dxfrecuente"/> to an instance of <see cref="dxfrecuenteDto"/>. /// </summary> /// <param name="entity"><see cref="dxfrecuente"/> to convert.</param> public static dxfrecuenteDto ToDTO(this dxfrecuente entity) { if (entity == null) { return(null); } var dto = new dxfrecuenteDto(); dto.v_DxFrecuenteId = entity.v_DxFrecuenteId; dto.v_DiseasesId = entity.v_DiseasesId; dto.v_CIE10Id = entity.v_CIE10Id; 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="dxfrecuenteDto"/> to an instance of <see cref="dxfrecuente"/>. /// </summary> /// <param name="dto"><see cref="dxfrecuenteDto"/> to convert.</param> public static dxfrecuente ToEntity(this dxfrecuenteDto dto) { if (dto == null) { return(null); } var entity = new dxfrecuente(); entity.v_DxFrecuenteId = dto.v_DxFrecuenteId; entity.v_DiseasesId = dto.v_DiseasesId; entity.v_CIE10Id = dto.v_CIE10Id; 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="dxfrecuente"/> converted from <see cref="dxfrecuenteDto"/>.</param> static partial void OnEntity(this dxfrecuenteDto dto, dxfrecuente entity);
/// <summary> /// Invoked when <see cref="ToDTO"/> operation is about to return. /// </summary> /// <param name="dto"><see cref="dxfrecuenteDto"/> converted from <see cref="dxfrecuente"/>.</param> static partial void OnDTO(this dxfrecuente entity, dxfrecuenteDto dto);