DaoBaseUpdateExistingAsync Method |
Namespace:
SD.LLBLGen.Pro.ORMSupportClasses
Assembly:
SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.2.0.0 (5.2.17.0403)
Syntax public Task<bool> UpdateExistingAsync(
IEntityFields fields,
ITransaction containingTransaction,
IPredicate updateRestriction,
CancellationToken cancellationToken
)
Public Function UpdateExistingAsync (
fields As IEntityFields,
containingTransaction As ITransaction,
updateRestriction As IPredicate,
cancellationToken As CancellationToken
) As Task(Of Boolean)
Parameters
- fields
- Type: SD.LLBLGen.Pro.ORMSupportClassesIEntityFields
The EntityField data to use for the update - containingTransaction
- Type: SD.LLBLGen.Pro.ORMSupportClassesITransaction
A containing transaction, if caller is added to a transaction, or null if not. - updateRestriction
- Type: SD.LLBLGen.Pro.ORMSupportClassesIPredicate
Predicate expression, meant for concurrency checks in an Update query - cancellationToken
- Type: System.ThreadingCancellationToken
The cancellation token.
Return Value
Type:
TaskBoolean
true if the update was succesful, false otherwise
Implements
IDaoUpdateExistingAsync(IEntityFields, ITransaction, IPredicate, CancellationToken)Exceptions See Also