DaoBaseAddNewAsync Method |
Namespace:
SD.LLBLGen.Pro.ORMSupportClasses
Assembly:
SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.12.0.0 (5.12.0)
Syntaxpublic Task<bool> AddNewAsync(
IEntityFields fields,
ITransaction containingTransaction,
CancellationToken cancellationToken
)
Public Function AddNewAsync (
fields As IEntityFields,
containingTransaction As ITransaction,
cancellationToken As CancellationToken
) As Task(Of Boolean)
Parameters
- fields
- Type: SD.LLBLGen.Pro.ORMSupportClassesIEntityFields
The EntityField data to use for the insert. - containingTransaction
- Type: SD.LLBLGen.Pro.ORMSupportClassesITransaction
A containing transaction, if caller is added to a transaction, or null if not. - cancellationToken
- Type: System.ThreadingCancellationToken
The cancellation token.
Return Value
Type:
TaskBoolean
true if the addition was succesful, false otherwise
Implements
IDaoAddNewAsync(IEntityFields, ITransaction, CancellationToken)
ExceptionsException | Condition |
---|
ArgumentNullException | fields;fields can't be null |
ArgumentNullException | When fields is null |
See Also