/// <summary> /// Converts this instance of <see cref="servicecomponentDto"/> to an instance of <see cref="servicecomponent"/>. /// </summary> /// <param name="dto"><see cref="servicecomponentDto"/> to convert.</param> public static servicecomponent ToEntity(this servicecomponentDto dto) { if (dto == null) { return(null); } var entity = new servicecomponent(); entity.v_ServiceComponentId = dto.v_ServiceComponentId; entity.v_ServiceId = dto.v_ServiceId; entity.v_ComponentId = dto.v_ComponentId; entity.i_ServiceComponentStatusId = dto.i_ServiceComponentStatusId; entity.i_ExternalInternalId = dto.i_ExternalInternalId; entity.i_ServiceComponentTypeId = dto.i_ServiceComponentTypeId; entity.i_IsVisibleId = dto.i_IsVisibleId; entity.i_IsInheritedId = dto.i_IsInheritedId; entity.d_CalledDate = dto.d_CalledDate; entity.d_StartDate = dto.d_StartDate; entity.d_EndDate = dto.d_EndDate; entity.i_index = dto.i_index; entity.r_Price = dto.r_Price; entity.i_IsInvoicedId = dto.i_IsInvoicedId; entity.i_IsRequiredId = dto.i_IsRequiredId; entity.i_IsManuallyAddedId = dto.i_IsManuallyAddedId; entity.i_QueueStatusId = dto.i_QueueStatusId; entity.v_NameOfice = dto.v_NameOfice; entity.v_Comment = dto.v_Comment; entity.i_Iscalling = dto.i_Iscalling; entity.i_IsApprovedId = dto.i_IsApprovedId; 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_ApprovedInsertUserId = dto.i_ApprovedInsertUserId; entity.i_ApprovedUpdateUserId = dto.i_ApprovedUpdateUserId; entity.d_ApprovedInsertDate = dto.d_ApprovedInsertDate; entity.d_ApprovedUpdateDate = dto.d_ApprovedUpdateDate; entity.i_InsertUserMedicalAnalystId = dto.i_InsertUserMedicalAnalystId; entity.i_UpdateUserMedicalAnalystId = dto.i_UpdateUserMedicalAnalystId; entity.d_InsertDateMedicalAnalyst = dto.d_InsertDateMedicalAnalyst; entity.d_UpdateDateMedicalAnalyst = dto.d_UpdateDateMedicalAnalyst; entity.i_InsertUserTechnicalDataRegisterId = dto.i_InsertUserTechnicalDataRegisterId; entity.i_UpdateUserTechnicalDataRegisterId = dto.i_UpdateUserTechnicalDataRegisterId; entity.d_InsertDateTechnicalDataRegister = dto.d_InsertDateTechnicalDataRegister; entity.d_UpdateDateTechnicalDataRegister = dto.d_UpdateDateTechnicalDataRegister; entity.i_Iscalling_1 = dto.i_Iscalling_1; dto.OnEntity(entity); return(entity); }
/// <summary> /// Converts this instance of <see cref="servicecomponentDto"/> to an instance of <see cref="servicecomponent"/>. /// </summary> /// <param name="dto"><see cref="servicecomponentDto"/> to convert.</param> public static servicecomponent ToEntity(this servicecomponentDto dto) { if (dto == null) { return(null); } var entity = new servicecomponent(); entity.v_ServiceComponentId = dto.v_ServiceComponentId; entity.v_ServiceId = dto.v_ServiceId; entity.v_ComponentId = dto.v_ComponentId; entity.i_ServiceComponentStatusId = dto.i_ServiceComponentStatusId; entity.i_ExternalInternalId = dto.i_ExternalInternalId; entity.i_ServiceComponentTypeId = dto.i_ServiceComponentTypeId; entity.i_IsVisibleId = dto.i_IsVisibleId; entity.i_IsInheritedId = dto.i_IsInheritedId; entity.d_CalledDate = dto.d_CalledDate; entity.d_StartDate = dto.d_StartDate; entity.d_EndDate = dto.d_EndDate; entity.i_index = dto.i_index; entity.r_Price = dto.r_Price; entity.i_IsInvoicedId = dto.i_IsInvoicedId; entity.i_IsRequiredId = dto.i_IsRequiredId; entity.i_IsManuallyAddedId = dto.i_IsManuallyAddedId; entity.i_QueueStatusId = dto.i_QueueStatusId; entity.v_NameOfice = dto.v_NameOfice; entity.v_Comment = dto.v_Comment; entity.i_Iscalling = dto.i_Iscalling; entity.i_IsApprovedId = dto.i_IsApprovedId; 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_ApprovedInsertUserId = dto.i_ApprovedInsertUserId; entity.i_ApprovedUpdateUserId = dto.i_ApprovedUpdateUserId; entity.d_ApprovedInsertDate = dto.d_ApprovedInsertDate; entity.d_ApprovedUpdateDate = dto.d_ApprovedUpdateDate; entity.i_InsertUserMedicalAnalystId = dto.i_InsertUserMedicalAnalystId; entity.i_UpdateUserMedicalAnalystId = dto.i_UpdateUserMedicalAnalystId; entity.d_InsertDateMedicalAnalyst = dto.d_InsertDateMedicalAnalyst; entity.d_UpdateDateMedicalAnalyst = dto.d_UpdateDateMedicalAnalyst; entity.i_InsertUserTechnicalDataRegisterId = dto.i_InsertUserTechnicalDataRegisterId; entity.i_UpdateUserTechnicalDataRegisterId = dto.i_UpdateUserTechnicalDataRegisterId; entity.d_InsertDateTechnicalDataRegister = dto.d_InsertDateTechnicalDataRegister; entity.d_UpdateDateTechnicalDataRegister = dto.d_UpdateDateTechnicalDataRegister; entity.i_Iscalling_1 = dto.i_Iscalling_1; entity.i_AuditorInsertUserId = dto.i_AuditorInsertUserId; entity.d_AuditorInsertUser = dto.d_AuditorInsertUser; entity.i_AuditorUpdateUserId = dto.i_AuditorUpdateUserId; entity.d_AuditorUpdateUser = dto.d_AuditorUpdateUser; entity.v_IdUnidadProductiva = dto.v_IdUnidadProductiva; entity.d_SaldoPaciente = dto.d_SaldoPaciente; entity.d_SaldoAseguradora = dto.d_SaldoAseguradora; entity.i_MedicoTratanteId = dto.i_MedicoTratanteId; entity.i_SystemUserEspecialistaId = dto.i_SystemUserEspecialistaId; entity.i_ConCargoA = dto.i_ConCargoA; dto.OnEntity(entity); return(entity); }