/// <summary> /// Converts this instance of <see cref="componentfield"/> to an instance of <see cref="componentfieldDto"/>. /// </summary> /// <param name="entity"><see cref="componentfield"/> to convert.</param> public static componentfieldDto ToDTO(this componentfield entity) { if (entity == null) { return(null); } var dto = new componentfieldDto(); dto.v_ComponentFieldId = entity.v_ComponentFieldId; dto.v_TextLabel = entity.v_TextLabel; dto.i_LabelWidth = entity.i_LabelWidth; dto.v_abbreviation = entity.v_abbreviation; dto.v_DefaultText = entity.v_DefaultText; dto.i_ControlId = entity.i_ControlId; dto.i_GroupId = entity.i_GroupId; dto.i_ItemId = entity.i_ItemId; dto.i_WidthControl = entity.i_WidthControl; dto.i_HeightControl = entity.i_HeightControl; dto.i_MaxLenght = entity.i_MaxLenght; dto.i_IsRequired = entity.i_IsRequired; dto.i_IsCalculate = entity.i_IsCalculate; dto.v_Formula = entity.v_Formula; dto.i_Order = entity.i_Order; dto.i_MeasurementUnitId = entity.i_MeasurementUnitId; dto.r_ValidateValue1 = entity.r_ValidateValue1; dto.r_ValidateValue2 = entity.r_ValidateValue2; dto.i_Column = entity.i_Column; dto.i_defaultIndex = entity.i_defaultIndex; 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.i_NroDecimales = entity.i_NroDecimales; dto.i_ReadOnly = entity.i_ReadOnly; dto.i_Enabled = entity.i_Enabled; entity.OnDTO(dto); return(dto); }
/// <summary> /// Converts this instance of <see cref="componentfieldDto"/> to an instance of <see cref="componentfield"/>. /// </summary> /// <param name="dto"><see cref="componentfieldDto"/> to convert.</param> public static componentfield ToEntity(this componentfieldDto dto) { if (dto == null) { return(null); } var entity = new componentfield(); entity.v_ComponentFieldId = dto.v_ComponentFieldId; entity.v_TextLabel = dto.v_TextLabel; entity.i_LabelWidth = dto.i_LabelWidth; entity.v_abbreviation = dto.v_abbreviation; entity.v_DefaultText = dto.v_DefaultText; entity.i_ControlId = dto.i_ControlId; entity.i_GroupId = dto.i_GroupId; entity.i_ItemId = dto.i_ItemId; entity.i_WidthControl = dto.i_WidthControl; entity.i_HeightControl = dto.i_HeightControl; entity.i_MaxLenght = dto.i_MaxLenght; entity.i_IsRequired = dto.i_IsRequired; entity.i_IsCalculate = dto.i_IsCalculate; entity.v_Formula = dto.v_Formula; entity.i_Order = dto.i_Order; entity.i_MeasurementUnitId = dto.i_MeasurementUnitId; entity.r_ValidateValue1 = dto.r_ValidateValue1; entity.r_ValidateValue2 = dto.r_ValidateValue2; entity.i_Column = dto.i_Column; entity.i_defaultIndex = dto.i_defaultIndex; 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_NroDecimales = dto.i_NroDecimales; entity.i_ReadOnly = dto.i_ReadOnly; entity.i_Enabled = dto.i_Enabled; dto.OnEntity(entity); return(entity); }
/// <summary> /// Invoked when <see cref="ToEntity"/> operation is about to return. /// </summary> /// <param name="entity"><see cref="componentfield"/> converted from <see cref="componentfieldDto"/>.</param> static partial void OnEntity(this componentfieldDto dto, componentfield entity);
/// <summary> /// Invoked when <see cref="ToDTO"/> operation is about to return. /// </summary> /// <param name="dto"><see cref="componentfieldDto"/> converted from <see cref="componentfield"/>.</param> static partial void OnDTO(this componentfield entity, componentfieldDto dto);
public componentfieldsDto(String v_ComponentId, String v_ComponentFieldId, String v_Group, Nullable <Int32> i_IsDeleted, Nullable <Int32> i_InsertUserId, Nullable <DateTime> d_InsertDate, Nullable <Int32> i_UpdateUserId, Nullable <DateTime> d_UpdateDate, componentDto component, componentfieldDto componentfield, List <diagnosticrepositoryDto> diagnosticrepository, List <servicecomponentfieldsDto> servicecomponentfields) { this.v_ComponentId = v_ComponentId; this.v_ComponentFieldId = v_ComponentFieldId; this.v_Group = v_Group; 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.component = component; this.componentfield = componentfield; this.diagnosticrepository = diagnosticrepository; this.servicecomponentfields = servicecomponentfields; }
public componentfieldvaluesDto(String v_ComponentFieldValuesId, String v_Diseases, String v_ComponentFieldId, String v_AnalyzingValue1, String v_AnalyzingValue2, Nullable <Int32> i_OperatorId, String v_LegalStandard, Nullable <Int32> i_IsAnormal, Nullable <Int32> i_ValidationMonths, Nullable <Int32> i_GenderId, Nullable <Int32> i_IsDeleted, Nullable <Int32> i_InsertUserId, Nullable <DateTime> d_InsertDate, Nullable <Int32> i_UpdateUserId, Nullable <DateTime> d_UpdateDate, componentfieldDto componentfield, diseasesDto diseases, List <componentfieldvaluesrecommendationDto> componentfieldvaluesrecommendation, List <componentfieldvaluesrestrictionDto> componentfieldvaluesrestriction, List <servicecomponentfieldvaluesDto> servicecomponentfieldvalues) { this.v_ComponentFieldValuesId = v_ComponentFieldValuesId; this.v_Diseases = v_Diseases; this.v_ComponentFieldId = v_ComponentFieldId; this.v_AnalyzingValue1 = v_AnalyzingValue1; this.v_AnalyzingValue2 = v_AnalyzingValue2; this.i_OperatorId = i_OperatorId; this.v_LegalStandard = v_LegalStandard; this.i_IsAnormal = i_IsAnormal; this.i_ValidationMonths = i_ValidationMonths; this.i_GenderId = i_GenderId; 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.componentfield = componentfield; this.diseases = diseases; this.componentfieldvaluesrecommendation = componentfieldvaluesrecommendation; this.componentfieldvaluesrestriction = componentfieldvaluesrestriction; this.servicecomponentfieldvalues = servicecomponentfieldvalues; }