예제 #1
0
        /// <summary>
        /// Converts this instance of <see cref="servicecomponentfields"/> to an instance of <see cref="servicecomponentfieldsDto"/>.
        /// </summary>
        /// <param name="entity"><see cref="servicecomponentfields"/> to convert.</param>
        public static servicecomponentfieldsDto ToDTO(this servicecomponentfields entity)
        {
            if (entity == null)
            {
                return(null);
            }

            var dto = new servicecomponentfieldsDto();

            dto.v_ServiceComponentFieldsId = entity.v_ServiceComponentFieldsId;
            dto.v_ServiceComponentId       = entity.v_ServiceComponentId;
            dto.v_ComponentId      = entity.v_ComponentId;
            dto.v_ComponentFieldId = entity.v_ComponentFieldId;
            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="servicecomponentfieldsDto"/> to an instance of <see cref="servicecomponentfields"/>.
        /// </summary>
        /// <param name="dto"><see cref="servicecomponentfieldsDto"/> to convert.</param>
        public static servicecomponentfields ToEntity(this servicecomponentfieldsDto dto)
        {
            if (dto == null)
            {
                return(null);
            }

            var entity = new servicecomponentfields();

            entity.v_ServiceComponentFieldsId = dto.v_ServiceComponentFieldsId;
            entity.v_ServiceComponentId       = dto.v_ServiceComponentId;
            entity.v_ComponentId      = dto.v_ComponentId;
            entity.v_ComponentFieldId = dto.v_ComponentFieldId;
            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);
        }
예제 #3
0
 /// <summary>
 /// Invoked when <see cref="ToDTO"/> operation is about to return.
 /// </summary>
 /// <param name="dto"><see cref="servicecomponentfieldsDto"/> converted from <see cref="servicecomponentfields"/>.</param>
 static partial void OnDTO(this servicecomponentfields entity, servicecomponentfieldsDto dto);
예제 #4
0
 /// <summary>
 /// Invoked when <see cref="ToEntity"/> operation is about to return.
 /// </summary>
 /// <param name="entity"><see cref="servicecomponentfields"/> converted from <see cref="servicecomponentfieldsDto"/>.</param>
 static partial void OnEntity(this servicecomponentfieldsDto dto, servicecomponentfields entity);
 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;
 }