Click or drag to resize

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.7.0.0 (5.7.0)
Syntax
public static Expression<Func<T>> Create<T>(
	IList<IEntityFieldCore> fields
)

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