Export (0) Print
Expand All
Expand Minimize

CompiledQuery.Compile<TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TResult> Method (Expression<Func<TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TResult>>)

.NET Framework 4.6 and 4.5

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, TResult> Compile<TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TResult>(
	Expression<Func<TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, 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.

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, TResult>>

The lambda expression to compile.

Return Value

Type: System.Func<TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TResult>
Func<T1, T2, T3, T4, T5, T6, TResult>, a generic delegate that represents the compiled LINQ to Entities query.

For more information and examples, see Compiled Queries (LINQ to Entities).

.NET Framework

Supported in: 4.6, 4.5, 4

.NET Framework Client Profile

Supported in: 4
Show:
© 2015 Microsoft