Method Delete
Delete<T, TShow>(IShowEntityService<T, TShow>, TShow, CancellationToken)
Deletes a single entity of type TShow from the IShowEntityService.
public static Task Delete<T, TShow>(this IShowEntityService<T, TShow> entityService, TShow entity, CancellationToken cancellationToken = default) where T : class where TShow : class
Parameters
entityService
IShowEntityService<T, TShow>The IShowEntityService instance.
entity
TShowThe entity to delete.
cancellationToken
CancellationTokenThe cancellation token.
Returns
- Task
A task representing the asynchronous operation.
Type Parameters
T
The type of the entity.
TShow
The type of the entity to show.
Delete<T, TList>(IListEntityService<T, TList>, TList, CancellationToken)
Deletes a single entity of type TList from the IListEntityService.
public static Task Delete<T, TList>(this IListEntityService<T, TList> entityService, TList entity, CancellationToken cancellationToken = default) where T : class where TList : class
Parameters
entityService
IListEntityService<T, TList>The IListEntityService instance.
entity
TListThe entity to delete.
cancellationToken
CancellationTokenThe cancellation token.
Returns
- Task
A task representing the asynchronous operation.
Type Parameters
T
The type of the entity.
TList
The type of the entity in the list.