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.12.0.0 (5.12.0)
Syntaxprotected virtual void CreateSingleTargetInsertDQ(
IEntityFieldCore[] fields,
IFieldPersistenceInfo[] fieldsPersistenceInfo,
IActionQuery query,
Dictionary<IEntityFieldCore, DbParameter> fieldToParameter
)
Protected Overridable Sub CreateSingleTargetInsertDQ (
fields As IEntityFieldCore(),
fieldsPersistenceInfo As IFieldPersistenceInfo(),
query As IActionQuery,
fieldToParameter As Dictionary(Of IEntityFieldCore, DbParameter)
)
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.
ExceptionsException | 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. |
See Also