Method Update
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
entityServiceIEditEntityService<T, TEdit>The IEditEntityService instance.
entityTEditThe entity to update.
cancellationTokenCancellationTokenThe cancellation token.
Returns
- Task<List<PrimaryKeys<T>>>
A task representing the asynchronous operation.
Type Parameters
TThe type of the entity.
TEditThe 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
entityServiceIListEntityService<T, TList>The IListEntityService instance.
entityTListThe entity to update.
cancellationTokenCancellationTokenThe cancellation token.
Returns
- Task<List<PrimaryKeys<T>>>
A task representing the asynchronous operation.
Type Parameters
TThe type of the entity.
TListThe 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
entityServiceIEntityService<T>The IEntityService instance.
entityTThe entity to update.
cancellationTokenCancellationTokenThe cancellation token.
Returns
- Task<PrimaryKeys<T>>
A task representing the asynchronous operation.
Type Parameters
TThe type of the entity.