IInheritanceInfoProviderGetEntityFactory Method |
Retrieves the factory for the entity represented by the values passed in, or null if entityName isn't present. The values have to
represent an entity of the type entityName or a subtype of that type.
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 IEntityFactoryCore GetEntityFactory(
string entityName,
Object[] values,
Dictionary<string, int> entityFieldStartIndexesPerEntity
)
Function GetEntityFactory (
entityName As String,
values As Object(),
entityFieldStartIndexesPerEntity As Dictionary(Of String, Integer)
) As IEntityFactoryCore
Parameters
- entityName
- Type: SystemString
name of the entity, like 'CustomerEntity'. This is the name of the root of the hierarchy to consider.
For example when fetching all managers, and manager derives from employee, this parameter is 'ManagerEntity', and only the manager type
or its subtypes (direct or indirect) are considered. - values
- Type: SystemObject
Field values read from the db, to determine which factory to return, based on the field values passed in. - entityFieldStartIndexesPerEntity
- Type: System.Collections.GenericDictionaryString, Int32
indexes into values where per entity type their own fields start.
Return Value
Type:
IEntityFactoryCorethe factory for the entity which is represented by the values passed in.
See Also