Click or drag to resize

ModelInfoProviderBaseGetEntityFactory 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.6.0.0 (5.6.19.0117)
Syntax
public IEntityFactoryCore GetEntityFactory(
	string entityName,
	Object[] values,
	Dictionary<string, int> entityFieldStartIndexesPerEntity
)

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: IEntityFactoryCore
the factory for the entity which is represented by the values passed in.

Implements

IInheritanceInfoProviderGetEntityFactory(String, Object, DictionaryString, Int32)
See Also