ProjectionLambdaCreatorCreateT, U Method |
Creates the lambda which instantiates a new T instance from fields produced by U. Each property of T which has a similarly named field
in U gets a projection call in the returned lambda.
Namespace:
SD.LLBLGen.Pro.QuerySpec
Assembly:
SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.2.0.0 (5.2.17.0403)
Syntax public static Expression<Func<T>> Create<T, U>()
where U : class
Public Shared Function Create(Of T, U As Class) As Expression(Of Func(Of T))
Type Parameters
- T
- type of the element the lambda has to create instances of, e.g. CustomerOrderRow
- U
- class which contains properties to create fields which are the source of the projection, e.g. CustomerFields.
Return Value
Type:
ExpressionFuncT
ready to use lambda for Select(Of T)
Remarks If there has already been created a lambda for T, U and it's found in the internal cache, that lambda is returned instead
of creating a new one.
See Also