Click or drag to resize

BatchActionQuery Class

Action query which contains multiple action queries which have to be executed in the order in which they're stored. Used for multi-target entities, like saving an inherited entity in a target-per-entity hierarchy.
Inheritance Hierarchy
SystemObject
  SD.LLBLGen.Pro.ORMSupportClassesBatchActionQuery

Namespace:  SD.LLBLGen.Pro.ORMSupportClasses
Assembly:  SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.8.0.0 (5.8.21.0111)
Syntax
public class BatchActionQuery : IActionQuery, 
	IQuery, IDisposable

The BatchActionQuery type exposes the following members.

Constructors
  NameDescription
Public methodBatchActionQuery
Creates a new BatchActionQuery instance.
Top
Properties
  NameDescription
Public propertyActionQueries
Gets the actionQueries set in this batch action query object.
Public propertyCanBePacked
Gets a value signalling whether this query can be packed in a packed query (true) or not (false). A query can be packed if it's not a batchquery and there are no parameter-parameter relations pending or parameter-field relations with self.
Public propertyCommand
Gets or sets the command. Not implemented on Batch action query objects. Use the indexer instead.
Public propertyConnection
Gets or sets the connection for this action query object. Get will return the connection of the first action query stored. Set will set the connection on all actionquery objects.
Public propertyCount
Gets the number of IActionQueries in this query.
Public propertyExceptionInfoRetriever
Gets / sets the ExceptionInfoRetriever object to retrieve db specific info from a db specific exception.
Public propertyExecuteThroughDbDataReader
If true (Default false) it will execute the command through ExecuteReader instead of ExecuteNonQuery and will assume output parameters are part of one or more resultsets. Output parameters are expected to be added through AddOutputParameterForReader(DbParameter), and are set through ordinal (so first parameter is set with value at ordinal 0).
Public propertyItem
Gets or sets the ActionQuery at the specified index.
Public propertyOutputParametersForReader
Gets the set of parameters set for the dbdatareader fill procedure. these parameters are added through AddOutputParameterForReader(DbParameter) and aren't part of the command.
Public propertyParameterFieldRelations
Gets the parameter field relations.
Public propertyParameterParameterRelations
Gets the parameter parameter relations for this IActionQuery. These definitions are used for insert queries in multi-target entity inserts.
Public propertyParameters
Gets the parameters of all queries.
Public propertyReturnValueParameter
If set, it will be used for the value returned in ExecuteNonQuery and will override the value ExecuteNonQuery returns or which is set in ForcedReturnValue.
Public propertySequenceRetrievalQueries
Gets the sequence retrieval queries. Not implemented in BatchActionQueries.
Top
Methods
  NameDescription
Public methodAddActionQuery
Adds the action query passed in.
Public methodAddOutputParameterForReader
Adds the specified parameter to the set of output parameters for a dbreader exectured query. These parameters aren't part of the dbcommand, and are filled with resultsets. All parameters are expected in each resultsets returned by the dbdatareader returned when this query is executed.
Public methodAddOutputParameterValueForSync
Adds the output parameter value for synchronization with the enclosed DbParameter, after the query has been executed.
Public methodAddParameter
Adds the parameter to the query's command.
Public methodAddParameterFieldRelation(IEntityFieldCore, DbParameter, TypeConverter)
Adds a new IParameterFieldRelation to the collection of ParameterFieldRelations. An output parameter can be stored once in the collection.
Public methodAddParameterFieldRelation(IEntityFieldCore, DbParameter, TypeConverter, Boolean)
Adds a new IParameterFieldRelation to the collection of ParameterFieldRelations. An output parameter can be stored once in the collection.
Public methodAddParameters
Adds the parameters to the query's command.
Public methodAddSequenceRetrievalQuery(DbCommand, Boolean)
Adds a new sequence retrieval query to this query
Public methodAddSequenceRetrievalQuery(DbCommand, Boolean, Boolean)
Adds a new sequence retrieval query to this query
Public methodAddSequenceRetrievalQuery(DbCommand, Boolean, ListDbParameter)
Adds a new sequence retrieval query to this query
Public methodAddSequenceRetrievalQuery(DbCommand, Boolean, Boolean, ListDbParameter)
Adds a new sequence retrieval query to this query
Public methodDispose
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Protected methodDispose(Boolean)
Performs the dispose action.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodExecute
Executes all action queries in this batchactionquery, in the order in which they were added.
Public methodExecuteAsync
Async variant of Execute. Executes the query contained by the IQuery instance.
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodMergeInto
Merges all data of query into this query's QueryToExecute. It moves parameters and other elements. Query is after this not usable anymore.
Public methodReflectOutputValuesInParameterValues
Reflects the output values of output parameters in parameter values, if any.
Public methodReflectOutputValuesInRelatedFields
Reflects the output values in related fields for all actionqueries in this batchactionquery.
Public methodSetCommandText
Sets the command text to the text specified
Public methodSetCommandTimeout
Sets the command timeout.
Public methodToString
Produces a string representation of this batch action query.
(Overrides ObjectToString.)
Public methodWireTransaction
Wires the command of this query with the transaction passed in.
Top
Explicit Interface Implementations
  NameDescription
Explicit interface implementationPrivate propertyIActionQueryForcedReturnValue
Gets or sets the forced return value. If smaller than 0, the value returned by the command is used, otherwise this value. Set by DQEs which know up front the query won't return a valid return value, because batching is used.
Top
See Also