Interface IDocumentOwnerDataService
- Namespace
- Ascon.Polynom.Web.Api.Data.Interfaces.Repository
- Assembly
- Ascon.Polynom.Web.Api.Data.dll
public interface IDocumentOwnerDataService : IDataService<IIdentifiableObject>, IDataService
Methods
LinkDocumentsAsync(IIdentifiableObject, IEnumerable<IIdentifiableObject>, CancellationToken)
Привязывает документ к объекту-владельцу.
Task<IEnumerable<IOwnedDocument>> LinkDocumentsAsync(IIdentifiableObject documentOwnerObject, IEnumerable<IIdentifiableObject> documentObjects, CancellationToken cancellationToken = default)
Parameters
documentOwnerObjectIIdentifiableObjectИдентификатор владельца документа.
documentObjectsIEnumerable<IIdentifiableObject>Идентификатор документа.
cancellationTokenCancellationTokenТокен отмены.
Returns
UnlinkDocumentsAsync(IIdentifiableObject, IEnumerable<IIdentifiableObject>, CancellationToken)
Удаляет связь между документом и объектом-владельцем.
Task<IEnumerable<IOwnedDocument>> UnlinkDocumentsAsync(IIdentifiableObject documentOwnerObject, IEnumerable<IIdentifiableObject> documentObjects, CancellationToken cancellationToken = default)
Parameters
documentOwnerObjectIIdentifiableObjectИдентификатор владельца документа.
documentObjectsIEnumerable<IIdentifiableObject>cancellationTokenCancellationTokenТокен отмены.