Click or drag to resize

LinqUtilsGetEntityFactoryT Method

Gets the entity factory for the entity type specified. Applies null checks with gracious error reporting for better clarity why it failed.

Namespace:  SD.LLBLGen.Pro.LinqSupportClasses
Assembly:  SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.5.0.0 (5.5.18.1019)
Syntax
public static T GetEntityFactory<T>(
	IElementCreatorCore creator,
	Type entityType
)
where T : class, IEntityFactoryCore

Parameters

creator
Type: SD.LLBLGen.Pro.ORMSupportClassesIElementCreatorCore
The creator.
entityType
Type: SystemType
Type of the entity.

Type Parameters

T

Return Value

Type: T
Exceptions
ExceptionCondition
ORMQueryConstructionException Can't obtain entity factory as creator is null or Can't obtain entity factory as entity type specified is null or
See Also