Click or drag to resize

DaoBaseInsertMultiAsync Method

Async variant of InsertMulti(ITransaction, DynamicQuery) Inserts all rows matching the select query into the target of the entity type this DAO is for. Which fields are inserted is defined by the select query. Sequenced fields are taken care of if they're not specified in the select query. This method will result in an INSERT INTO entityTarget (field1, field2...) SELECT ... statement.

Namespace:  SD.LLBLGen.Pro.ORMSupportClasses
Assembly:  SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.11.0.0 (5.11.23.1114)
Syntax
public Task<int> InsertMultiAsync(
	ITransaction containingTransaction,
	DynamicQuery selectQuery,
	CancellationToken cancellationToken
)

Parameters

containingTransaction
Type: SD.LLBLGen.Pro.ORMSupportClassesITransaction
A containing transaction, if caller is added to a transaction, or null if not.
selectQuery
Type: SD.LLBLGen.Pro.QuerySpecDynamicQuery
the query spec query which will produce the row data to insert
cancellationToken
Type: System.ThreadingCancellationToken
The cancellation token

Return Value

Type: TaskInt32
The number of rows inserted

Implements

IDaoInsertMultiAsync(ITransaction, DynamicQuery, CancellationToken)
Remarks
Prefetch paths, paging directives as well as nested queries are ignored in selectQuery.

No inheritance support.
See Also