Click or drag to resize
PersistenceCore.CreateEntityInstanceFromReaderRow 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.3.0.0 (5.3.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
)

Parameters

entityFactory
Type: SD.LLBLGen.Pro.ORMSupportClasses.IEntityFactoryCore
The entity factory.
typeOfHierarchy
Type: SD.LLBLGen.Pro.ORMSupportClasses.InheritanceHierarchyType
The type of hierarchy.
valuesOfRow
Type:System.Object[]
The values of row.
indicesForEnumConverts
Type: System.Collections.Generic.Dictionary<Int32, Type>
The indices for enum converts. Key is index in values, Value is enum type. Can be null
indicesForTypeConverters
Type: System.Collections.Generic.Dictionary<Int32, TypeConverter>
The indices for type converters. Key is index in values, Value is type converter instance. Can be null
hierarchyFieldValueArrayLengths
Type: System.Collections.Generic.Dictionary<String, 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.Generic.Dictionary<String, Int32>
Dictionary which is used in inheritance scenarios to determine the start of the subtype fragments in the resultset.
entityFactoryToUse
Type: SD.LLBLGen.Pro.ORMSupportClasses.IEntityFactoryCore
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