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.3.0)
public static int ProduceFieldInfoToOrdinalsLookups(
	InheritanceHierarchyType typeOfHierarchy,
	IFieldPersistenceInfo[] fieldsPersistenceInfo,
	IEntityFieldsCore fieldsUsedForQuery,
	out Dictionary<string, int> hierarchyFieldValueArrayLengths,
	out Dictionary<string, int> entityFieldStartIndexesPerEntity


Type: SD.LLBLGen.Pro.ORMSupportClassesInheritanceHierarchyType
The type of hierarchy.
Type: SD.LLBLGen.Pro.ORMSupportClassesIFieldPersistenceInfo
The fields persistence infos.
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.
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
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