Table of Contents

Method Update

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

Update<T, TEdit>(IEditEntityService<T, TEdit>, TEdit, CancellationToken)

Updates a single entity of type TEdit using the IEditEntityService.

public static Task<List<PrimaryKeys<T>>> Update<T, TEdit>(this IEditEntityService<T, TEdit> entityService, TEdit entity, CancellationToken cancellationToken = default) where T : class where TEdit : class

Parameters

entityService IEditEntityService<T, TEdit>

The IEditEntityService instance.

entity TEdit

The entity to update.

cancellationToken CancellationToken

The cancellation token.

Returns

Task<List<PrimaryKeys<T>>>

A task representing the asynchronous operation.

Type Parameters

T

The type of the entity.

TEdit

The type of the entity to edit.

Update<T, TList>(IListEntityService<T, TList>, TList, CancellationToken)

Updates a single entity of type TList using the IListEntityService.

public static Task<List<PrimaryKeys<T>>> Update<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 update.

cancellationToken CancellationToken

The cancellation token.

Returns

Task<List<PrimaryKeys<T>>>

A task representing the asynchronous operation.

Type Parameters

T

The type of the entity.

TList

The type of the entity in the list.

Update<T>(IEntityService<T>, T, CancellationToken)

Updates a single entity of type T using the IEntityService.

public static Task<PrimaryKeys<T>> Update<T>(this IEntityService<T> entityService, T entity, CancellationToken cancellationToken = default) where T : class

Parameters

entityService IEntityService<T>

The IEntityService instance.

entity T

The entity to update.

cancellationToken CancellationToken

The cancellation token.

Returns

Task<PrimaryKeys<T>>

A task representing the asynchronous operation.

Type Parameters

T

The type of the entity.