Click or drag to resize

DynamicQueryEngineBaseCreateSingleTargetInsertDQ Method

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.11.0.0 (5.11.23.1114)
Syntax
protected virtual void CreateSingleTargetInsertDQ(
	IEntityFieldCore[] fields,
	IFieldPersistenceInfo[] fieldsPersistenceInfo,
	IActionQuery query,
	Dictionary<IEntityFieldCore, DbParameter> fieldToParameter
)

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
query
Type: SD.LLBLGen.Pro.ORMSupportClassesIActionQuery
The query object to fill.
fieldToParameter
Type: System.Collections.GenericDictionaryIEntityFieldCore, DbParameter
Hashtable which will contain after the call for each field the parameter which contains or will contain the field's value.
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.
See Also