DynamicQueryEngineBaseCreateInsertDQ Method (IEntityFieldCore, IFieldPersistenceInfo, DbConnection) |
Creates a new Insert Query object which is ready to use.
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 public IActionQuery CreateInsertDQ(
IEntityFieldCore[] fields,
IFieldPersistenceInfo[] fieldsPersistenceInfo,
DbConnection connectionToUse
)
Public Function CreateInsertDQ (
fields As IEntityFieldCore(),
fieldsPersistenceInfo As IFieldPersistenceInfo(),
connectionToUse As DbConnection
) As IActionQuery
Parameters
- fields
- Type: SD.LLBLGen.Pro.ORMSupportClassesIEntityFieldCore
Array of EntityFieldCore objects to use to build the insert query - fieldsPersistenceInfo
- Type: SD.LLBLGen.Pro.ORMSupportClassesIFieldPersistenceInfo
Array of IFieldPersistenceInfo objects to use to build the insert query - connectionToUse
- Type: System.Data.CommonDbConnection
The connection to use for the query
Return Value
Type:
IActionQueryIActionQuery Instance which is ready to be used.
Exceptions Exception | Condition |
---|
ArgumentNullException | When fields is null or fieldsPersistenceInfo is null |
ArgumentException | When fields contains no EntityFieldCore instances or fieldsPersistenceInfo is empty. |
ORMQueryConstructionException | When there are no fields to insert in the fields list. This exception is to prevent
INSERT INTO table () VALUES () style queries. |
Remarks Generic version.
See Also