QuerySpecExtensionMethodsSelectT, U Method (DynamicQuery) |
Specifies the projection of the query specified, making it a typed dynamic query. It creates the projection from the two type arguments given.
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 DynamicQuery<T> Select<T, U>(
this DynamicQuery query
)
where T : new()
where U : class
<ExtensionAttribute>
Public Shared Function Select(Of T As New, U As Class) (
query As DynamicQuery
) As DynamicQuery(Of T)
Parameters
- query
- Type: SD.LLBLGen.Pro.QuerySpecDynamicQuery
The query to specify the select for.
Type Parameters
- T
- T is the type of the return class which has to be filled.
- U
- the type of the fields creation class, e.g. CustomerFields
Return Value
Type:
DynamicQueryTThe specified query with a typed projection
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
DynamicQuery. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also