/// <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); }
/// <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); }
/// <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);
/// <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);