Table of Contents

Method Delete

Namespace
Innova.Data.Entity
Assembly
Innova.Data.dll

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 TShow

The entity to delete.

cancellationToken CancellationToken

The 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 TList

The entity to delete.

cancellationToken CancellationToken

The 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.