CompiledQuery.Compile<'TArg0, 'TArg1, 'TArg2, 'TArg3, 'TArg4, 'TArg5, 'TArg6, 'TArg7, 'TArg8, 'TArg9, 'TArg10, 'TArg11, 'TArg12, 'TArg13, 'TArg14, 'TArg15, 'TResult> Method (Expression<Func<'TArg0, 'TArg1, 'TArg2, 'TArg3, 'TArg4, 'TArg5, 'TArg6, 'TArg7, 'TArg8, 'TArg9, 'TArg10, 'TArg11, 'TArg12, 'TArg13, 'TArg14, 'TArg15, 'TResult>>)
Compiles the query.
Assembly: System.Data.Linq (in System.Data.Linq.dll)
static member Compile<'TArg0, 'TArg1, 'TArg2, 'TArg3, 'TArg4, 'TArg5, 'TArg6, 'TArg7, 'TArg8, 'TArg9, 'TArg10, 'TArg11, 'TArg12, 'TArg13, 'TArg14, 'TArg15, 'TResult when 'TArg0 : DataContext> : query:Expression<Func<'TArg0, 'TArg1, 'TArg2, 'TArg3, 'TArg4, 'TArg5, 'TArg6, 'TArg7, 'TArg8, 'TArg9, 'TArg10, 'TArg11, 'TArg12, 'TArg13, 'TArg14, 'TArg15, 'TResult>> -> Func<'TArg0, 'TArg1, 'TArg2, 'TArg3, 'TArg4, 'TArg5, 'TArg6, 'TArg7, 'TArg8, 'TArg9, 'TArg10, 'TArg11, 'TArg12, 'TArg13, 'TArg14, 'TArg15, 'TResult>
Parameters
- query
-
Type:
System.Linq.Expressions.Expression<Func<'TArg0, 'TArg1, 'TArg2, 'TArg3, 'TArg4, 'TArg5, 'TArg6, 'TArg7, 'TArg8, 'TArg9, 'TArg10, 'TArg11, 'TArg12, 'TArg13, 'TArg14, 'TArg15, 'TResult>>
The query expression to be compiled.
Return Value
Type: System.Func<'TArg0, 'TArg1, 'TArg2, 'TArg3, 'TArg4, 'TArg5, 'TArg6, 'TArg7, 'TArg8, 'TArg9, 'TArg10, 'TArg11, 'TArg12, 'TArg13, 'TArg14, 'TArg15, 'TResult>A generic delegate that represents the compiled query.
Type Parameters
- TArg0
Represents the type of the parameter that has to be passed in when executing the delegate returned by the Compile<'TArg0, 'TResult> method.
- TArg1
Represents the type of the parameter that has to be passed in when executing the delegate returned by the Compile<'TArg0, 'TResult> method.
- TArg2
Represents the type of the parameter that has to be passed in when executing the delegate returned by the Compile<'TArg0, 'TResult> method.
- TArg3
Represents the type of the parameter that has to be passed in when executing the delegate returned by the Compile<'TArg0, 'TResult> method.
- TArg4
Represents the type of the parameter that has to be passed in when executing the delegate returned by the Compile<'TArg0, 'TResult> method.
- TArg5
Represents the type of the parameter that has to be passed in when executing the delegate returned by the Compile<'TArg0, 'TResult> method.
- TArg6
Represents the type of the parameter that has to be passed in when executing the delegate returned by the Compile<'TArg0, 'TResult> method.
- TArg7
Represents the type of the parameter that has to be passed in when executing the delegate returned by the Compile<'TArg0, 'TResult> method.
- TArg8
Represents the type of the parameter that has to be passed in when executing the delegate returned by the Compile<'TArg0, 'TResult> method.
- TArg9
Represents the type of the parameter that has to be passed in when executing the delegate returned by the Compile<'TArg0, 'TResult> method.
- TArg10
Represents the type of the parameter that has to be passed in when executing the delegate returned by the Compile<'TArg0, 'TResult> method.
- TArg11
Represents the type of the parameter that has to be passed in when executing the delegate returned by the Compile<'TArg0, 'TResult> method.
- TArg12
Represents the type of the parameter that has to be passed in when executing the delegate returned by the Compile<'TArg0, 'TResult> method.
- TArg13
Represents the type of the parameter that has to be passed in when executing the delegate returned by the Compile<'TArg0, 'TResult> method.
- TArg14
Represents the type of the parameter that has to be passed in when executing the delegate returned by the Compile<'TArg0, 'TResult> method.
- TArg15
Represents the type of the parameter that has to be passed in when executing the delegate returned by the Compile<'TArg0, 'TResult> method.
- TResult
The type of T in the System.Collections.Generic.IEnumerable<'T> returned when executing the delegate returned by the Compile<'TArg0, 'TResult> method.
Available since 4.0