Click or drag to resize

DynamicQueryEngineCreateSingleTargetInsertDQ Method

Creates a new Insert Query object which is ready to use.

Namespace:  SD.LLBLGen.Pro.DQE.SqlServer
Assembly:  SD.LLBLGen.Pro.DQE.SqlServer (in SD.LLBLGen.Pro.DQE.SqlServer.dll) Version: 5.4.0.0 (5.4.0)
Syntax
protected override 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.
Remarks
Generic version.
See Also