Пример #1
0
        /// <summary>
        /// Converts this instance of <see cref="componentfieldvalues"/> to an instance of <see cref="componentfieldvaluesDto"/>.
        /// </summary>
        /// <param name="entity"><see cref="componentfieldvalues"/> to convert.</param>
        public static componentfieldvaluesDto ToDTO(this componentfieldvalues entity)
        {
            if (entity == null)
            {
                return(null);
            }

            var dto = new componentfieldvaluesDto();

            dto.v_ComponentFieldValuesId = entity.v_ComponentFieldValuesId;
            dto.v_DiseasesId             = entity.v_DiseasesId;
            dto.v_ComponentFieldId       = entity.v_ComponentFieldId;
            dto.v_AnalyzingValue1        = entity.v_AnalyzingValue1;
            dto.v_AnalyzingValue2        = entity.v_AnalyzingValue2;
            dto.i_OperatorId             = entity.i_OperatorId;
            dto.v_LegalStandard          = entity.v_LegalStandard;
            dto.i_IsAnormal        = entity.i_IsAnormal;
            dto.i_ValidationMonths = entity.i_ValidationMonths;
            dto.i_GenderId         = entity.i_GenderId;
            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);
        }
Пример #2
0
        /// <summary>
        /// Converts this instance of <see cref="componentfieldvaluesDto"/> to an instance of <see cref="componentfieldvalues"/>.
        /// </summary>
        /// <param name="dto"><see cref="componentfieldvaluesDto"/> to convert.</param>
        public static componentfieldvalues ToEntity(this componentfieldvaluesDto dto)
        {
            if (dto == null)
            {
                return(null);
            }

            var entity = new componentfieldvalues();

            entity.v_ComponentFieldValuesId = dto.v_ComponentFieldValuesId;
            entity.v_DiseasesId             = dto.v_DiseasesId;
            entity.v_ComponentFieldId       = dto.v_ComponentFieldId;
            entity.v_AnalyzingValue1        = dto.v_AnalyzingValue1;
            entity.v_AnalyzingValue2        = dto.v_AnalyzingValue2;
            entity.i_OperatorId             = dto.i_OperatorId;
            entity.v_LegalStandard          = dto.v_LegalStandard;
            entity.i_IsAnormal        = dto.i_IsAnormal;
            entity.i_ValidationMonths = dto.i_ValidationMonths;
            entity.i_GenderId         = dto.i_GenderId;
            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);
        }
Пример #3
0
 public componentfieldvaluesrestrictionDto(String v_ComponentFieldValuesRestrictionId, String v_ComponentFieldValuesId, String v_MasterRecommendationRestricctionId, Nullable <Int32> i_IsDeleted, Nullable <Int32> i_InsertUserId, Nullable <DateTime> d_InsertDate, Nullable <Int32> i_UpdateUserId, Nullable <DateTime> d_UpdateDate, componentfieldvaluesDto componentfieldvalues, masterrecommendationrestricctionDto masterrecommendationrestricction)
 {
     this.v_ComponentFieldValuesRestrictionId  = v_ComponentFieldValuesRestrictionId;
     this.v_ComponentFieldValuesId             = v_ComponentFieldValuesId;
     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.componentfieldvalues             = componentfieldvalues;
     this.masterrecommendationrestricction = masterrecommendationrestricction;
 }
Пример #4
0
 /// <summary>
 /// Invoked when <see cref="ToEntity"/> operation is about to return.
 /// </summary>
 /// <param name="entity"><see cref="componentfieldvalues"/> converted from <see cref="componentfieldvaluesDto"/>.</param>
 static partial void OnEntity(this componentfieldvaluesDto dto, componentfieldvalues entity);
Пример #5
0
 /// <summary>
 /// Invoked when <see cref="ToDTO"/> operation is about to return.
 /// </summary>
 /// <param name="dto"><see cref="componentfieldvaluesDto"/> converted from <see cref="componentfieldvalues"/>.</param>
 static partial void OnDTO(this componentfieldvalues entity, componentfieldvaluesDto dto);
 public servicecomponentfieldvaluesDto(String v_ServiceComponentFieldValuesId, String v_ComponentFieldValuesId, String v_ServiceComponentFieldsId, String v_Value1, String v_Value2, Nullable <Int32> i_Index, Nullable <Int32> i_Value1, Nullable <Int32> i_IsDeleted, Nullable <Int32> i_InsertUserId, Nullable <DateTime> d_InsertDate, Nullable <Int32> i_UpdateUserId, Nullable <DateTime> d_UpdateDate, componentfieldvaluesDto componentfieldvalues, servicecomponentfieldsDto servicecomponentfields, List <servicecomponentfieldvaluesmultimediaDto> servicecomponentfieldvaluesmultimedia)
 {
     this.v_ServiceComponentFieldValuesId = v_ServiceComponentFieldValuesId;
     this.v_ComponentFieldValuesId        = v_ComponentFieldValuesId;
     this.v_ServiceComponentFieldsId      = v_ServiceComponentFieldsId;
     this.v_Value1               = v_Value1;
     this.v_Value2               = v_Value2;
     this.i_Index                = i_Index;
     this.i_Value1               = i_Value1;
     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.componentfieldvalues   = componentfieldvalues;
     this.servicecomponentfields = servicecomponentfields;
     this.servicecomponentfieldvaluesmultimedia = servicecomponentfieldvaluesmultimedia;
 }