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.4.0.0 (5.4.0)
Syntax public static int ProduceFieldInfoToOrdinalsLookups(
InheritanceHierarchyType typeOfHierarchy,
IFieldPersistenceInfo[] fieldsPersistenceInfo,
IEntityFieldsCore fieldsUsedForQuery,
out Dictionary<string, int> hierarchyFieldValueArrayLengths,
out Dictionary<string, int> entityFieldStartIndexesPerEntity
)
Public Shared Function ProduceFieldInfoToOrdinalsLookups (
typeOfHierarchy As InheritanceHierarchyType,
fieldsPersistenceInfo As IFieldPersistenceInfo(),
fieldsUsedForQuery As IEntityFieldsCore,
<OutAttribute> ByRef hierarchyFieldValueArrayLengths As Dictionary(Of String, Integer),
<OutAttribute> ByRef entityFieldStartIndexesPerEntity As Dictionary(Of String, Integer)
) As Integer
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