コード例 #1
0
        /// <summary>
        /// Converts this instance of <see cref="servicecomponentfieldvalues"/> to an instance of <see cref="servicecomponentfieldvaluesDto"/>.
        /// </summary>
        /// <param name="entity"><see cref="servicecomponentfieldvalues"/> to convert.</param>
        public static servicecomponentfieldvaluesDto ToDTO(this servicecomponentfieldvalues entity)
        {
            if (entity == null)
            {
                return(null);
            }

            var dto = new servicecomponentfieldvaluesDto();

            dto.v_ServiceComponentFieldValuesId = entity.v_ServiceComponentFieldValuesId;
            dto.v_ComponentFieldValuesId        = entity.v_ComponentFieldValuesId;
            dto.v_ServiceComponentFieldsId      = entity.v_ServiceComponentFieldsId;
            dto.v_Value1       = entity.v_Value1;
            dto.v_Value2       = entity.v_Value2;
            dto.i_Index        = entity.i_Index;
            dto.i_Value1       = entity.i_Value1;
            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);
        }
コード例 #2
0
        /// <summary>
        /// Converts this instance of <see cref="servicecomponentfieldvaluesDto"/> to an instance of <see cref="servicecomponentfieldvalues"/>.
        /// </summary>
        /// <param name="dto"><see cref="servicecomponentfieldvaluesDto"/> to convert.</param>
        public static servicecomponentfieldvalues ToEntity(this servicecomponentfieldvaluesDto dto)
        {
            if (dto == null)
            {
                return(null);
            }

            var entity = new servicecomponentfieldvalues();

            entity.v_ServiceComponentFieldValuesId = dto.v_ServiceComponentFieldValuesId;
            entity.v_ComponentFieldValuesId        = dto.v_ComponentFieldValuesId;
            entity.v_ServiceComponentFieldsId      = dto.v_ServiceComponentFieldsId;
            entity.v_Value1       = dto.v_Value1;
            entity.v_Value2       = dto.v_Value2;
            entity.i_Index        = dto.i_Index;
            entity.i_Value1       = dto.i_Value1;
            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);
        }
 public servicecomponentfieldvaluesmultimediaDto(String v_ServiceComponentFieldValuesMultimediaId, String v_MultimediaFileId, String v_ServiceComponentFieldValuesId, Nullable <Int32> i_IsDeleted, Nullable <Int32> i_InsertUserId, Nullable <DateTime> d_InsertDate, Nullable <Int32> i_UpdateUserId, Nullable <DateTime> d_UpdateDate, multimediafileDto multimediafile, servicecomponentfieldvaluesDto servicecomponentfieldvalues)
 {
     this.v_ServiceComponentFieldValuesMultimediaId = v_ServiceComponentFieldValuesMultimediaId;
     this.v_MultimediaFileId = v_MultimediaFileId;
     this.v_ServiceComponentFieldValuesId = v_ServiceComponentFieldValuesId;
     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.multimediafile = multimediafile;
     this.servicecomponentfieldvalues = servicecomponentfieldvalues;
 }
コード例 #4
0
 /// <summary>
 /// Invoked when <see cref="ToEntity"/> operation is about to return.
 /// </summary>
 /// <param name="entity"><see cref="servicecomponentfieldvalues"/> converted from <see cref="servicecomponentfieldvaluesDto"/>.</param>
 static partial void OnEntity(this servicecomponentfieldvaluesDto dto, servicecomponentfieldvalues entity);
コード例 #5
0
 /// <summary>
 /// Invoked when <see cref="ToDTO"/> operation is about to return.
 /// </summary>
 /// <param name="dto"><see cref="servicecomponentfieldvaluesDto"/> converted from <see cref="servicecomponentfieldvalues"/>.</param>
 static partial void OnDTO(this servicecomponentfieldvalues entity, servicecomponentfieldvaluesDto dto);