Click or drag to resize
RepositoryE, KUpdateAsync Method
Updates the entity in the database.

Namespace: LiteRepository
Assembly: LiteRepository (in LiteRepository.dll) Version: 2.0.4
Syntax
C#
public virtual Task<int> UpdateAsync(
	E entity
)

Parameters

entity
Type: E
Entity to update.

Return Value

Type: TaskInt32
A task representing the asynchronous operation.
Examples

For updating the entity:

C#
var entity = new Entity { FirstName = "Alex", SecondName = "Lion" };
await repository.UpdateAsync(entity);
See Also