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.3.0.0 (5.3.0)
Syntax public static T GetEntityFactory<T>(
IElementCreatorCore creator,
Type entityType
)
where T : class, IEntityFactoryCore
Public Shared Function GetEntityFactory(Of T As {Class, IEntityFactoryCore}) (
creator As IElementCreatorCore,
entityType As Type
) As T
Parameters
- creator
- Type: SD.LLBLGen.Pro.ORMSupportClassesIElementCreatorCore
The creator. - entityType
- Type: SystemType
Type of the entity.
Type Parameters
- T
Return Value
Type:
TExceptions Exception | Condition |
---|
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