ProjectionLambdaCreatorCreateT Method (IListIEntityFieldCore) |
Creates the lambda which instantiates a new T instance and specified fields. Each property of T which has a similarly named field
in fields 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.9.0.0 (5.9.0)
Syntax public static Expression<Func<T>> Create<T>(
IList<IEntityFieldCore> fields
)
Public Shared Function Create(Of T) (
fields As IList(Of IEntityFieldCore)
) As Expression(Of Func(Of T))
Parameters
- fields
- Type: System.Collections.GenericIListIEntityFieldCore
The fields which will be used for source for the projection.
Type Parameters
- T
- type of the element the lambda has to create instances of
Return Value
Type:
ExpressionFuncT
ready to use lambda for Select(Of T)
Remarks
Doesn't use lambda cache, so always builds a fresh lambda that isn't cached.
See Also