Click or drag to resize

DaoBaseGetAsProjection Method (ListIDataValueProjector, IGeneralDataProjector, ITransaction, IRetrievalQuery, Boolean, Boolean, DictionaryInt32, TypeConverter)

Executes the passed in retrievalquery and projects the resultset using the value projectors and the projector specified. IF a transaction is specified, the command is wired to the transaction and executed inside the transaction. The projection results will be stored in the projector.

Namespace:  SD.LLBLGen.Pro.ORMSupportClasses
Assembly:  SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.6.0.0 (5.6.19.0117)
Syntax
protected void GetAsProjection(
	List<IDataValueProjector> valueProjectors,
	IGeneralDataProjector projector,
	ITransaction transactionToUse,
	IRetrievalQuery queryToExecute,
	bool performValueProjectionsOnRawRow,
	bool postProcessDBNullValues,
	Dictionary<int, TypeConverter> typeConvertersToRun
)

Parameters

valueProjectors
Type: System.Collections.GenericListIDataValueProjector
The value projectors.
projector
Type: SD.LLBLGen.Pro.ORMSupportClassesIGeneralDataProjector
The projector to use for projecting a plain row onto a new object provided by the projector.
transactionToUse
Type: SD.LLBLGen.Pro.ORMSupportClassesITransaction
The transaction to use, if you execute this method inside a transcation. Specify null otherwise
queryToExecute
Type: SD.LLBLGen.Pro.ORMSupportClassesIRetrievalQuery
The query to execute.
performValueProjectionsOnRawRow
Type: SystemBoolean
if set to true the projection method will perform value projections on the plain row prior to using it in the projector and will create a new object row to store the projected values in. If false, the plain row is passed on as-is
postProcessDBNullValues
Type: SystemBoolean
if set to true it will perform a DBNull to null conversion on the row passed to the projector. Only specify this to true if the projector deals with object arrays to the outside. In all other cases make the projectors already convert the DBNull values.
typeConvertersToRun
Type: System.Collections.GenericDictionaryInt32, TypeConverter
The type converters to use for the query. The key is the index in the result row, the value is the type converter to run on that value. These type converters have to run prior to the projectors will run.
See Also