Click or drag to resize
ProjectionLambdaCreatorCreateT Method (IEntityFieldsCore)
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.0.0.0 (5.0.0)
Syntax
public static Expression<Func<T>> Create<T>(
	IEntityFieldsCore fields
)
where T : new()

Parameters

fields
Type: SD.LLBLGen.Pro.ORMSupportClassesIEntityFieldsCore
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