PersistenceCoreCreateEntityInstanceFromReaderRow Method |
Creates an entity instance from the reader row passed in as valuesOfRow
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 IEntityCore CreateEntityInstanceFromReaderRow(
IEntityFactoryCore entityFactory,
InheritanceHierarchyType typeOfHierarchy,
Object[] valuesOfRow,
Dictionary<int, Type> indicesForEnumConverts,
Dictionary<int, TypeConverter> indicesForTypeConverters,
Dictionary<string, int> hierarchyFieldValueArrayLengths,
Dictionary<string, int> entityFieldStartIndexesPerEntity,
out IEntityFactoryCore entityFactoryToUse
)
Public Shared Function CreateEntityInstanceFromReaderRow (
entityFactory As IEntityFactoryCore,
typeOfHierarchy As InheritanceHierarchyType,
valuesOfRow As Object(),
indicesForEnumConverts As Dictionary(Of Integer, Type),
indicesForTypeConverters As Dictionary(Of Integer, TypeConverter),
hierarchyFieldValueArrayLengths As Dictionary(Of String, Integer),
entityFieldStartIndexesPerEntity As Dictionary(Of String, Integer),
<OutAttribute> ByRef entityFactoryToUse As IEntityFactoryCore
) As IEntityCore
Parameters
- entityFactory
- Type: SD.LLBLGen.Pro.ORMSupportClassesIEntityFactoryCore
The entity factory. - typeOfHierarchy
- Type: SD.LLBLGen.Pro.ORMSupportClassesInheritanceHierarchyType
The type of hierarchy. - valuesOfRow
- Type: SystemObject
The values of row. - indicesForEnumConverts
- Type: System.Collections.GenericDictionaryInt32, Type
The indices for enum converts. Key is index in values, Value is enum type. Can be null - indicesForTypeConverters
- Type: System.Collections.GenericDictionaryInt32, TypeConverter
The indices for type converters. Key is index in values, Value is type converter instance. Can be null - 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 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. - entityFactoryToUse
- Type: SD.LLBLGen.Pro.ORMSupportClassesIEntityFactoryCore
The entity factory to use. Set by this routine, if the entity is an inheritance entity
Return Value
Type:
IEntityCore
the newly created entity instance with the values set into its fields
See Also