Table of Contents

Interface IConceptPropertySourceDataService

Namespace
Ascon.Polynom.Web.Api.Data.Interfaces.Repository
Assembly
Ascon.Polynom.Web.Api.Data.dll
public interface IConceptPropertySourceDataService : IDataService

Methods

CreateAsync(ICreateConceptPropertySourceRequest, CancellationToken)

Создает пустое свойство понятия на основе определения свойства.

Task<IConceptPropertySource> CreateAsync(ICreateConceptPropertySourceRequest request, CancellationToken cancellationToken)

Parameters

request ICreateConceptPropertySourceRequest

Запрос создания пустого свойства понятия.

cancellationToken CancellationToken

Токен отмены.

Returns

Task<IConceptPropertySource>

DeleteAsync(IDeleteRequest, CancellationToken)

Удаляет свойство понятия.

Task DeleteAsync(IDeleteRequest request, CancellationToken cancellationToken = default)

Parameters

request IDeleteRequest

Запрос удаления объекта.

cancellationToken CancellationToken

Токен отмены.

Returns

Task

GetAutoGeneratedNamePreviewAsync(IIdentifierRequest, CancellationToken)

Возвращает сгенерированное автоматически имя свойства. Такое имя будет у свойства, если отключить флаг IsNameManuallySet.

Task<string> GetAutoGeneratedNamePreviewAsync(IIdentifierRequest request, CancellationToken cancellationToken = default)

Parameters

request IIdentifierRequest

Запрос объекта по идентификатору.

cancellationToken CancellationToken

Токен отмены.

Returns

Task<string>

GetConceptPropertySourceByAbsoluteCodeAsync(IGetByAbsoluteCodeRequest, CancellationToken)

Возвращает свойство понятия по полному коду.

Task<IConceptPropertySource> GetConceptPropertySourceByAbsoluteCodeAsync(IGetByAbsoluteCodeRequest request, CancellationToken cancellationToken = default)

Parameters

request IGetByAbsoluteCodeRequest

Запрос объекта по полному коду.

cancellationToken CancellationToken

Токен отмены.

Returns

Task<IConceptPropertySource>

GetConceptPropertySourceByCodeAsync(IGetByCodeConceptPropertySourceRequest, CancellationToken)

Возвращает свойство понятия по коду.

Task<IConceptPropertySource> GetConceptPropertySourceByCodeAsync(IGetByCodeConceptPropertySourceRequest request, CancellationToken cancellationToken = default)

Parameters

request IGetByCodeConceptPropertySourceRequest

Запрос свойства понятия по коду.

cancellationToken CancellationToken

Токен отмены.

Returns

Task<IConceptPropertySource>

GetConceptPropertySourceByIdAsync(IGetByIdRequest, CancellationToken)

Возвращает свойство понятия по идентификатору.

Task<IConceptPropertySource> GetConceptPropertySourceByIdAsync(IGetByIdRequest request, CancellationToken cancellationToken = default)

Parameters

request IGetByIdRequest

Запрос объекта по идентификатору.

cancellationToken CancellationToken

Токен отмены.

Returns

Task<IConceptPropertySource>

GetConceptPropertySourceByUidAsync(IGetByUidRequest, CancellationToken)

Возвращает свойство понятия по Guid.

Task<IConceptPropertySource> GetConceptPropertySourceByUidAsync(IGetByUidRequest uid, CancellationToken cancellationToken = default)

Parameters

uid IGetByUidRequest

Запрос объекта по Guid.

cancellationToken CancellationToken

Токен отмены.

Returns

Task<IConceptPropertySource>

GetConceptPropertySourcesByConceptIdAsync(IIdentifierRequest, CancellationToken)

Возвращает список всех свойств понятия.

Task<List<IConceptPropertySource>> GetConceptPropertySourcesByConceptIdAsync(IIdentifierRequest request, CancellationToken cancellationToken = default)

Parameters

request IIdentifierRequest

Запрос объекта по идентификатору.

cancellationToken CancellationToken

Токен отмены.

Returns

Task<List<IConceptPropertySource>>

SetDefaultMeasureUnitForAllValuesAsync(ISetDefaultMeasureUnitForAllValuesConceptPropertySourceRequest, CancellationToken)

Устанавливает единицы измерения по умолчанию для всех значений.

Task<IConceptPropertySource> SetDefaultMeasureUnitForAllValuesAsync(ISetDefaultMeasureUnitForAllValuesConceptPropertySourceRequest request, CancellationToken cancellationToken = default)

Parameters

request ISetDefaultMeasureUnitForAllValuesConceptPropertySourceRequest

Запрос установки единицы измерения.

cancellationToken CancellationToken

Токен отмены.

Returns

Task<IConceptPropertySource>

SetDisplayNameAsync(ISetDisplayNameConceptPropertySourceRequest, CancellationToken)

Изменяет отображаемое имя на новое.

Task<IConceptPropertySource> SetDisplayNameAsync(ISetDisplayNameConceptPropertySourceRequest request, CancellationToken cancellationToken = default)

Parameters

request ISetDisplayNameConceptPropertySourceRequest

Запрос изменения отображения имени.

cancellationToken CancellationToken

Токен отмены.

Returns

Task<IConceptPropertySource>

SetFormulaAsync(ISetFormulaConceptPropertySourceRequest, CancellationToken)

Назначает формулу в свойстве владельца свойств (или удаляет, если formula == null).

Task<IConceptPropertySource> SetFormulaAsync(ISetFormulaConceptPropertySourceRequest request, CancellationToken cancellationToken = default)

Parameters

request ISetFormulaConceptPropertySourceRequest

Запрос установки формулы.

cancellationToken CancellationToken

Токен отмены.

Returns

Task<IConceptPropertySource>

SetIsUniqueAsync(ISetIsUniqueConceptPropertySourceRequest, CancellationToken)

Устанавливает флаг "Уникальное".

Task<IConceptPropertySource> SetIsUniqueAsync(ISetIsUniqueConceptPropertySourceRequest request, CancellationToken cancellationToken = default)

Parameters

request ISetIsUniqueConceptPropertySourceRequest

Запрос установки флага.

cancellationToken CancellationToken

Токен отмены.

Returns

Task<IConceptPropertySource>

UpdateAsync(IUpdateConceptPropertySourceRequest, CancellationToken)

Редактирует свойство понятия.

Task<IConceptPropertySource> UpdateAsync(IUpdateConceptPropertySourceRequest request, CancellationToken cancellationToken = default)

Parameters

request IUpdateConceptPropertySourceRequest

Запрос редактирования свойства понятия.

cancellationToken CancellationToken

Токен отмены.

Returns

Task<IConceptPropertySource>