CompiledQuery.Compile<TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TArg7, TArg8, TArg9, TArg10, TArg11, TArg12, TArg13, TResult> Method (Expression<Func<TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TArg7, TArg8, TArg9, TArg10, TArg11, TArg12, TArg13, TResult>>)
Creates a new delegate that represents the compiled LINQ to Entities query.
Namespace: System.Data.Objects
Assembly: System.Data.Entity (in System.Data.Entity.dll)
public static Func<TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TArg7, TArg8, TArg9, TArg10, TArg11, TArg12, TArg13, TResult> Compile<TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TArg7, TArg8, TArg9, TArg10, TArg11, TArg12, TArg13, TResult>( Expression<Func<TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TArg7, TArg8, TArg9, TArg10, TArg11, TArg12, TArg13, TResult>> query ) where TArg0 : ObjectContext
Type Parameters
- TArg0
A type derived from ObjectContext.
- TArg1
Represents the type of the parameter that has to be passed in when executing the delegate returned by this method. TArg1 must be a primitive type.
- TArg2
Represents the type of the parameter that has to be passed in when executing the delegate returned by this method. TArg2 must be a primitive type.
- TArg3
Represents the type of the parameter that has to be passed in when executing the delegate returned by this method. TArg3 must be a primitive type.
- TArg4
Represents the type of the parameter that has to be passed in when executing the delegate returned by this method. TArg4 must be a primitive type.
- TArg5
Represents the type of the parameter that has to be passed in when executing the delegate returned by this method. TArg5 must be a primitive type.
- TArg6
Represents the type of the parameter that has to be passed in when executing the delegate returned by this method. TArg6 must be a primitive type.
- TArg7
Represents the type of the parameter that has to be passed in when executing the delegate returned by this method. TArg7 must be a primitive type.
- TArg8
Represents the type of the parameter that has to be passed in when executing the delegate returned by this method. TArg8 must be a primitive type.
- TArg9
Represents the type of the parameter that has to be passed in when executing the delegate returned by this method. TArg9 must be a primitive type.
- TArg10
Represents the type of the parameter that has to be passed in when executing the delegate returned by this method. TArg10 must be a primitive type.
- TArg11
Represents the type of the parameter that has to be passed in when executing the delegate returned by this method. TArg11 must be a primitive type.
- TArg12
Represents the type of the parameter that has to be passed in when executing the delegate returned by this method. TArg12 must be a primitive type.
- TArg13
Represents the type of the parameter that has to be passed in when executing the delegate returned by this method. TArg13 must be a primitive type.
- TResult
The type T of the query results returned by executing the delegate returned by the Compile method.
Parameters
- query
- Type: System.Linq.Expressions.Expression<Func<TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TArg7, TArg8, TArg9, TArg10, TArg11, TArg12, TArg13, TResult>>
The lambda expression to compile.
Return Value
Type: System.Func<TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TArg7, TArg8, TArg9, TArg10, TArg11, TArg12, TArg13, TResult>Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, TResult>, a generic delegate that represents the compiled LINQ to Entities query.
For more information and examples, see Compiled Queries.
Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.