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
entityServiceIShowEntityService<T, TShow>The IShowEntityService instance.
entityTShowThe entity to delete.
cancellationTokenCancellationTokenThe cancellation token.
Returns
- Task
A task representing the asynchronous operation.
Type Parameters
TThe type of the entity.
TShowThe 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
entityServiceIListEntityService<T, TList>The IListEntityService instance.
entityTListThe entity to delete.
cancellationTokenCancellationTokenThe cancellation token.
Returns
- Task
A task representing the asynchronous operation.
Type Parameters
TThe type of the entity.
TListThe type of the entity in the list.