Click or drag to resize

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.6.0.0 (5.6.19.0117)
Syntax
public IActionQuery CreateInsertDQ(
	IEntityFieldCore[] fields,
	IFieldPersistenceInfo[] fieldsPersistenceInfo,
	DbConnection connectionToUse
)

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: IActionQuery
IActionQuery Instance which is ready to be used.
Exceptions
ExceptionCondition
ArgumentNullExceptionWhen fields is null or fieldsPersistenceInfo is null
ArgumentExceptionWhen fields contains no EntityFieldCore instances or fieldsPersistenceInfo is empty.
ORMQueryConstructionExceptionWhen 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