Click or drag to resize

IDao.UpdateExistingAsync Method

Async variant of UpdateExisting(IEntityFields, ITransaction, IPredicate). Updates an existing entity using the given fields.

Namespace:  SD.LLBLGen.Pro.ORMSupportClasses
Assembly:  SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.4.0.0 (5.4.0)
Syntax
Task<bool> UpdateExistingAsync(
	IEntityFields fields,
	ITransaction containingTransaction,
	IPredicate updateRestriction,
	CancellationToken cancellationToken
)

Parameters

fields
Type: SD.LLBLGen.Pro.ORMSupportClasses.IEntityFields
The EntityField data to use for the update
containingTransaction
Type: SD.LLBLGen.Pro.ORMSupportClasses.ITransaction
A containing transaction, if caller is added to a transaction, or null if not.
updateRestriction
Type: SD.LLBLGen.Pro.ORMSupportClasses.IPredicate
Predicate expression, meant for concurrency checks in an Update query
cancellationToken
Type: System.Threading.CancellationToken
The cancellation token.

Return Value

Type: Task<Boolean>
true if the update was succesful, false otherwise
Exceptions
ExceptionCondition
ArgumentNullExceptionfields;fields can't be null
ArgumentNullExceptionWhen fields is null
See Also