Click or drag to resize

GeneratorUtilsDetermineElementsForQuerySpecProjectionFromDocument Method

Determines the data needed to generate projection code for the document specified. The data returned is for projecting the fields in the document specified, excluding fields which represent a nested document or set of documents.

Namespace:  SD.LLBLGen.Pro.GeneratorCore
Assembly:  SD.LLBLGen.Pro.GeneratorCore (in SD.LLBLGen.Pro.GeneratorCore.dll) Version: 5.8.0.0 (5.8.21.0208)
Syntax
public static DocumentProjectionData DetermineElementsForQuerySpecProjectionFromDocument(
	DocumentDefinitionBase document,
	SourceNavigatorPath pathToExclude,
	bool inlineValueTypeFields,
	DocumentProjectionData parentData = null,
	int nestingLevel = 0
)

Parameters

document
Type: SD.LLBLGen.Pro.ApplicationCore.DerivedModelDocumentDefinitionBase
The document to produce the data for
pathToExclude
Type: SD.LLBLGen.Pro.ApplicationCore.DerivedModelSourceNavigatorPath
The path to exclude.
inlineValueTypeFields
Type: SystemBoolean
if set to true it assumes valuetype field inlining. If field inlining is specified, valuetype field names are the first field in the path + the last field's name (which is this instances referenced field)
parentData (Optional)
Type: SD.LLBLGen.Pro.GeneratorCoreDocumentProjectionData
The parent document projection data to track data in. If null, a new one is created.
nestingLevel (Optional)
Type: SystemInt32
THe nesting level of recursion, used to create unique aliases in a scope

Return Value

Type: DocumentProjectionData
the parentData if it was passed in, filled with the data of this document, otherwise a new projection data object
See Also