/// <summary> /// Converts this instance of <see cref="servicecomponentfieldvaluesmultimedia"/> to an instance of <see cref="servicecomponentfieldvaluesmultimediaDto"/>. /// </summary> /// <param name="entity"><see cref="servicecomponentfieldvaluesmultimedia"/> to convert.</param> public static servicecomponentfieldvaluesmultimediaDto ToDTO(this servicecomponentfieldvaluesmultimedia entity) { if (entity == null) { return(null); } var dto = new servicecomponentfieldvaluesmultimediaDto(); dto.v_ServiceComponentFieldValuesMultimediaId = entity.v_ServiceComponentFieldValuesMultimediaId; dto.v_MultimediaFileId = entity.v_MultimediaFileId; dto.v_ServiceComponentFieldValuesId = entity.v_ServiceComponentFieldValuesId; 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); }
/// <summary> /// Converts this instance of <see cref="servicecomponentfieldvaluesmultimediaDto"/> to an instance of <see cref="servicecomponentfieldvaluesmultimedia"/>. /// </summary> /// <param name="dto"><see cref="servicecomponentfieldvaluesmultimediaDto"/> to convert.</param> public static servicecomponentfieldvaluesmultimedia ToEntity(this servicecomponentfieldvaluesmultimediaDto dto) { if (dto == null) { return(null); } var entity = new servicecomponentfieldvaluesmultimedia(); entity.v_ServiceComponentFieldValuesMultimediaId = dto.v_ServiceComponentFieldValuesMultimediaId; entity.v_MultimediaFileId = dto.v_MultimediaFileId; entity.v_ServiceComponentFieldValuesId = dto.v_ServiceComponentFieldValuesId; 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); }
/// <summary> /// Invoked when <see cref="ToEntity"/> operation is about to return. /// </summary> /// <param name="entity"><see cref="servicecomponentfieldvaluesmultimedia"/> converted from <see cref="servicecomponentfieldvaluesmultimediaDto"/>.</param> static partial void OnEntity(this servicecomponentfieldvaluesmultimediaDto dto, servicecomponentfieldvaluesmultimedia entity);
/// <summary> /// Invoked when <see cref="ToDTO"/> operation is about to return. /// </summary> /// <param name="dto"><see cref="servicecomponentfieldvaluesmultimediaDto"/> converted from <see cref="servicecomponentfieldvaluesmultimedia"/>.</param> static partial void OnDTO(this servicecomponentfieldvaluesmultimedia entity, servicecomponentfieldvaluesmultimediaDto dto);