Click or drag to resize

DynamicQueryEngine.CreateSingleTargetInsertDQ Method

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

Namespace:  SD.LLBLGen.Pro.DQE.Oracle
Assemblies:   SD.LLBLGen.Pro.DQE.OracleMS (in SD.LLBLGen.Pro.DQE.OracleMS.dll) Version: 5.8.0.0 (5.8.21.0111)
  SD.LLBLGen.Pro.DQE.OracleODPNet (in SD.LLBLGen.Pro.DQE.OracleODPNet.dll) Version: 5.8.0.0 (5.8.21.0111)
Syntax
protected override void CreateSingleTargetInsertDQ(
	IEntityFieldCore[] fields,
	IFieldPersistenceInfo[] fieldsPersistenceInfo,
	IActionQuery query,
	Dictionary<IEntityFieldCore, DbParameter> fieldToParameter
)

Parameters

fields
Type:SD.LLBLGen.Pro.ORMSupportClasses.IEntityFieldCore[]
Array of EntityFieldCore objects to use to build the insert query
fieldsPersistenceInfo
Type:SD.LLBLGen.Pro.ORMSupportClasses.IFieldPersistenceInfo[]
Array of IFieldPersistenceInfo objects to use to build the insert query
query
Type: SD.LLBLGen.Pro.ORMSupportClasses.IActionQuery
The query object to fill.
fieldToParameter
Type: System.Collections.Generic.Dictionary<IEntityFieldCore, 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