Click or drag to resize

PersistenceCoreProduceFieldInfoToOrdinalsLookups Method

Produces the field info to ordinals lookups, which are used during the fetch of one or more entities.

Namespace:  SD.LLBLGen.Pro.ORMSupportClasses
Assembly:  SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.11.0.0 (5.11.23.1114)
Syntax
public static int ProduceFieldInfoToOrdinalsLookups(
	InheritanceHierarchyType typeOfHierarchy,
	IFieldPersistenceInfo[] fieldsPersistenceInfo,
	IEntityFieldsCore fieldsUsedForQuery,
	out Dictionary<string, int> hierarchyFieldValueArrayLengths,
	out Dictionary<string, int> entityFieldStartIndexesPerEntity
)

Parameters

typeOfHierarchy
Type: SD.LLBLGen.Pro.ORMSupportClassesInheritanceHierarchyType
The type of hierarchy.
fieldsPersistenceInfo
Type: SD.LLBLGen.Pro.ORMSupportClassesIFieldPersistenceInfo
The fields persistence infos.
fieldsUsedForQuery
Type: SD.LLBLGen.Pro.ORMSupportClassesIEntityFieldsCore
The fields used for the query. Can be null, in which case the caller is assumed to be a projector so there are no excluded fields and field persistence info is not available.
hierarchyFieldValueArrayLengths
Type: System.Collections.GenericDictionaryString, Int32
Dictionary which is used to define per entity in the fieldsUsedInQuery the length of the array fragments per entity name. Use this together with entityFieldStartIndexesPerEntity in TPE inheritance scenarios
entityFieldStartIndexesPerEntity
Type: System.Collections.GenericDictionaryString, Int32
Dictionary which is used in inheritance scenarios to determine the start of the subtype fragments in the resultset.

Return Value

Type: Int32
the number of fields to fetch (thus the # of fields minus the # of excluded fields.)
See Also