Table of Contents

Class EF

Namespace
Microsoft.EntityFrameworkCore
Assembly
Microsoft.EntityFrameworkCore.dll

Static methods that are useful in application code where there is not an EF type for the method to be accessed from. For example, referencing a shadow state property in a LINQ query.

public static class EF
Inheritance
EF
Inherited Members

Remarks

See Database functions and Using EF.Property in EF Core queries for more information and examples.

Properties

Functions

Provides CLR methods that get translated to database functions when used in LINQ to Entities queries. Calling these methods in other contexts (e.g. LINQ to Objects) will throw a NotSupportedException.

public static DbFunctions Functions { get; }

Property Value

DbFunctions

Remarks

Note that this is a static property accessed through the top-level EF static type.

See Database functions for more information and examples.

IsDesignTime

This flag is set to true when code is being run from a design-time tool, such as "dotnet ef" or one of the Package Manager Console PowerShell commands "Add-Migration", "Update-Database", etc.

public static bool IsDesignTime { get; set; }

Property Value

bool

Remarks

This flag can be inspected to change application behavior. For example, if the application is being executed by an EF design-time tool, then it may choose to skip executing migrations commands as part of startup.

See EF Core command-line reference for more information and examples.

Methods

CompileAsyncQuery<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TResult, TProperty>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, IIncludableQueryable<TResult, TProperty>>>)

Creates a compiled query delegate that when invoked will execute the specified LINQ query.

public static Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, IAsyncEnumerable<TResult>> CompileAsyncQuery<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TResult, TProperty>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, IIncludableQueryable<TResult, TProperty>>> queryExpression) where TContext : DbContext

Parameters

queryExpression Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, IIncludableQueryable<TResult, TProperty>>>

The LINQ query expression.

Returns

Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, IAsyncEnumerable<TResult>>

A delegate that can be invoked to execute the compiled query.

Type Parameters

TContext

The target DbContext type.

TParam1

The type of the first query parameter.

TParam2

The type of the second query parameter.

TParam3

The type of the third query parameter.

TParam4

The type of the fourth query parameter.

TParam5

The type of the fifth query parameter.

TParam6

The type of the sixth query parameter.

TParam7

The type of the seventh query parameter.

TResult

The query result type.

TProperty

The included property type.

CompileAsyncQuery<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TResult>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, IQueryable<TResult>>>)

Creates a compiled query delegate that when invoked will execute the specified LINQ query.

public static Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, IAsyncEnumerable<TResult>> CompileAsyncQuery<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TResult>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, IQueryable<TResult>>> queryExpression) where TContext : DbContext

Parameters

queryExpression Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, IQueryable<TResult>>>

The LINQ query expression.

Returns

Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, IAsyncEnumerable<TResult>>

A delegate that can be invoked to execute the compiled query.

Type Parameters

TContext

The target DbContext type.

TParam1

The type of the first query parameter.

TParam2

The type of the second query parameter.

TParam3

The type of the third query parameter.

TParam4

The type of the fourth query parameter.

TParam5

The type of the fifth query parameter.

TParam6

The type of the sixth query parameter.

TParam7

The type of the seventh query parameter.

TParam8

The type of the eighth query parameter.

TResult

The query result type.

CompileAsyncQuery<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TResult>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, CancellationToken, TResult>>)

Creates a compiled query delegate that when invoked will execute the specified LINQ query.

public static Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, CancellationToken, Task<TResult>> CompileAsyncQuery<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TResult>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, CancellationToken, TResult>> queryExpression) where TContext : DbContext

Parameters

queryExpression Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, CancellationToken, TResult>>

The LINQ query expression.

Returns

Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, CancellationToken, Task<TResult>>

A delegate that can be invoked to execute the compiled query.

Type Parameters

TContext

The target DbContext type.

TParam1

The type of the first query parameter.

TParam2

The type of the second query parameter.

TParam3

The type of the third query parameter.

TParam4

The type of the fourth query parameter.

TParam5

The type of the fifth query parameter.

TParam6

The type of the sixth query parameter.

TParam7

The type of the seventh query parameter.

TParam8

The type of the eighth query parameter.

TResult

The query result type.

CompileAsyncQuery<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TResult>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TResult>>)

Creates a compiled query delegate that when invoked will execute the specified LINQ query.

public static Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, Task<TResult>> CompileAsyncQuery<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TResult>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TResult>> queryExpression) where TContext : DbContext

Parameters

queryExpression Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TResult>>

The LINQ query expression.

Returns

Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, Task<TResult>>

A delegate that can be invoked to execute the compiled query.

Type Parameters

TContext

The target DbContext type.

TParam1

The type of the first query parameter.

TParam2

The type of the second query parameter.

TParam3

The type of the third query parameter.

TParam4

The type of the fourth query parameter.

TParam5

The type of the fifth query parameter.

TParam6

The type of the sixth query parameter.

TParam7

The type of the seventh query parameter.

TParam8

The type of the eighth query parameter.

TResult

The query result type.

CompileAsyncQuery<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TResult, TProperty>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, IIncludableQueryable<TResult, TProperty>>>)

Creates a compiled query delegate that when invoked will execute the specified LINQ query.

public static Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, IAsyncEnumerable<TResult>> CompileAsyncQuery<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TResult, TProperty>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, IIncludableQueryable<TResult, TProperty>>> queryExpression) where TContext : DbContext

Parameters

queryExpression Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, IIncludableQueryable<TResult, TProperty>>>

The LINQ query expression.

Returns

Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, IAsyncEnumerable<TResult>>

A delegate that can be invoked to execute the compiled query.

Type Parameters

TContext

The target DbContext type.

TParam1

The type of the first query parameter.

TParam2

The type of the second query parameter.

TParam3

The type of the third query parameter.

TParam4

The type of the fourth query parameter.

TParam5

The type of the fifth query parameter.

TParam6

The type of the sixth query parameter.

TParam7

The type of the seventh query parameter.

TParam8

The type of the eighth query parameter.

TResult

The query result type.

TProperty

The included property type.

CompileAsyncQuery<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TResult>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, IQueryable<TResult>>>)

Creates a compiled query delegate that when invoked will execute the specified LINQ query.

public static Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, IAsyncEnumerable<TResult>> CompileAsyncQuery<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TResult>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, IQueryable<TResult>>> queryExpression) where TContext : DbContext

Parameters

queryExpression Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, IQueryable<TResult>>>

The LINQ query expression.

Returns

Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, IAsyncEnumerable<TResult>>

A delegate that can be invoked to execute the compiled query.

Type Parameters

TContext

The target DbContext type.

TParam1

The type of the first query parameter.

TParam2

The type of the second query parameter.

TParam3

The type of the third query parameter.

TParam4

The type of the fourth query parameter.

TParam5

The type of the fifth query parameter.

TParam6

The type of the sixth query parameter.

TParam7

The type of the seventh query parameter.

TParam8

The type of the eighth query parameter.

TParam9

The type of the ninth query parameter.

TResult

The query result type.

CompileAsyncQuery<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TResult>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, CancellationToken, TResult>>)

Creates a compiled query delegate that when invoked will execute the specified LINQ query.

public static Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, CancellationToken, Task<TResult>> CompileAsyncQuery<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TResult>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, CancellationToken, TResult>> queryExpression) where TContext : DbContext

Parameters

queryExpression Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, CancellationToken, TResult>>

The LINQ query expression.

Returns

Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, CancellationToken, Task<TResult>>

A delegate that can be invoked to execute the compiled query.

Type Parameters

TContext

The target DbContext type.

TParam1

The type of the first query parameter.

TParam2

The type of the second query parameter.

TParam3

The type of the third query parameter.

TParam4

The type of the fourth query parameter.

TParam5

The type of the fifth query parameter.

TParam6

The type of the sixth query parameter.

TParam7

The type of the seventh query parameter.

TParam8

The type of the eighth query parameter.

TParam9

The type of the ninth query parameter.

TResult

The query result type.

CompileAsyncQuery<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TResult>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TResult>>)

Creates a compiled query delegate that when invoked will execute the specified LINQ query.

public static Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, Task<TResult>> CompileAsyncQuery<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TResult>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TResult>> queryExpression) where TContext : DbContext

Parameters

queryExpression Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TResult>>

The LINQ query expression.

Returns

Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, Task<TResult>>

A delegate that can be invoked to execute the compiled query.

Type Parameters

TContext

The target DbContext type.

TParam1

The type of the first query parameter.

TParam2

The type of the second query parameter.

TParam3

The type of the third query parameter.

TParam4

The type of the fourth query parameter.

TParam5

The type of the fifth query parameter.

TParam6

The type of the sixth query parameter.

TParam7

The type of the seventh query parameter.

TParam8

The type of the eighth query parameter.

TParam9

The type of the ninth query parameter.

TResult

The query result type.

CompileAsyncQuery<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TResult, TProperty>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, IIncludableQueryable<TResult, TProperty>>>)

Creates a compiled query delegate that when invoked will execute the specified LINQ query.

public static Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, IAsyncEnumerable<TResult>> CompileAsyncQuery<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TResult, TProperty>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, IIncludableQueryable<TResult, TProperty>>> queryExpression) where TContext : DbContext

Parameters

queryExpression Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, IIncludableQueryable<TResult, TProperty>>>

The LINQ query expression.

Returns

Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, IAsyncEnumerable<TResult>>

A delegate that can be invoked to execute the compiled query.

Type Parameters

TContext

The target DbContext type.

TParam1

The type of the first query parameter.

TParam2

The type of the second query parameter.

TParam3

The type of the third query parameter.

TParam4

The type of the fourth query parameter.

TParam5

The type of the fifth query parameter.

TParam6

The type of the sixth query parameter.

TParam7

The type of the seventh query parameter.

TParam8

The type of the eighth query parameter.

TParam9

The type of the ninth query parameter.

TResult

The query result type.

TProperty

The included property type.

CompileAsyncQuery<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TResult>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, IQueryable<TResult>>>)

Creates a compiled query delegate that when invoked will execute the specified LINQ query.

public static Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, IAsyncEnumerable<TResult>> CompileAsyncQuery<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TResult>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, IQueryable<TResult>>> queryExpression) where TContext : DbContext

Parameters

queryExpression Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, IQueryable<TResult>>>

The LINQ query expression.

Returns

Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, IAsyncEnumerable<TResult>>

A delegate that can be invoked to execute the compiled query.

Type Parameters

TContext

The target DbContext type.

TParam1

The type of the first query parameter.

TParam2

The type of the second query parameter.

TParam3

The type of the third query parameter.

TParam4

The type of the fourth query parameter.

TParam5

The type of the fifth query parameter.

TParam6

The type of the sixth query parameter.

TParam7

The type of the seventh query parameter.

TParam8

The type of the eighth query parameter.

TParam9

The type of the ninth query parameter.

TParam10

The type of the tenth query parameter.

TResult

The query result type.

CompileAsyncQuery<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TResult>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, CancellationToken, TResult>>)

Creates a compiled query delegate that when invoked will execute the specified LINQ query.

public static Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, CancellationToken, Task<TResult>> CompileAsyncQuery<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TResult>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, CancellationToken, TResult>> queryExpression) where TContext : DbContext

Parameters

queryExpression Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, CancellationToken, TResult>>

The LINQ query expression.

Returns

Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, CancellationToken, Task<TResult>>

A delegate that can be invoked to execute the compiled query.

Type Parameters

TContext

The target DbContext type.

TParam1

The type of the first query parameter.

TParam2

The type of the second query parameter.

TParam3

The type of the third query parameter.

TParam4

The type of the fourth query parameter.

TParam5

The type of the fifth query parameter.

TParam6

The type of the sixth query parameter.

TParam7

The type of the seventh query parameter.

TParam8

The type of the eighth query parameter.

TParam9

The type of the ninth query parameter.

TParam10

The type of the tenth query parameter.

TResult

The query result type.

CompileAsyncQuery<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TResult>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TResult>>)

Creates a compiled query delegate that when invoked will execute the specified LINQ query.

public static Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, Task<TResult>> CompileAsyncQuery<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TResult>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TResult>> queryExpression) where TContext : DbContext

Parameters

queryExpression Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TResult>>

The LINQ query expression.

Returns

Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, Task<TResult>>

A delegate that can be invoked to execute the compiled query.

Type Parameters

TContext

The target DbContext type.

TParam1

The type of the first query parameter.

TParam2

The type of the second query parameter.

TParam3

The type of the third query parameter.

TParam4

The type of the fourth query parameter.

TParam5

The type of the fifth query parameter.

TParam6

The type of the sixth query parameter.

TParam7

The type of the seventh query parameter.

TParam8

The type of the eighth query parameter.

TParam9

The type of the ninth query parameter.

TParam10

The type of the tenth query parameter.

TResult

The query result type.

CompileAsyncQuery<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TResult, TProperty>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, IIncludableQueryable<TResult, TProperty>>>)

Creates a compiled query delegate that when invoked will execute the specified LINQ query.

public static Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, IAsyncEnumerable<TResult>> CompileAsyncQuery<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TResult, TProperty>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, IIncludableQueryable<TResult, TProperty>>> queryExpression) where TContext : DbContext

Parameters

queryExpression Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, IIncludableQueryable<TResult, TProperty>>>

The LINQ query expression.

Returns

Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, IAsyncEnumerable<TResult>>

A delegate that can be invoked to execute the compiled query.

Type Parameters

TContext

The target DbContext type.

TParam1

The type of the first query parameter.

TParam2

The type of the second query parameter.

TParam3

The type of the third query parameter.

TParam4

The type of the fourth query parameter.

TParam5

The type of the fifth query parameter.

TParam6

The type of the sixth query parameter.

TParam7

The type of the seventh query parameter.

TParam8

The type of the eighth query parameter.

TParam9

The type of the ninth query parameter.

TParam10

The type of the tenth query parameter.

TResult

The query result type.

TProperty

The included property type.

CompileAsyncQuery<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TResult>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, IQueryable<TResult>>>)

Creates a compiled query delegate that when invoked will execute the specified LINQ query.

public static Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, IAsyncEnumerable<TResult>> CompileAsyncQuery<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TResult>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, IQueryable<TResult>>> queryExpression) where TContext : DbContext

Parameters

queryExpression Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, IQueryable<TResult>>>

The LINQ query expression.

Returns

Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, IAsyncEnumerable<TResult>>

A delegate that can be invoked to execute the compiled query.

Type Parameters

TContext

The target DbContext type.

TParam1

The type of the first query parameter.

TParam2

The type of the second query parameter.

TParam3

The type of the third query parameter.

TParam4

The type of the fourth query parameter.

TParam5

The type of the fifth query parameter.

TParam6

The type of the sixth query parameter.

TParam7

The type of the seventh query parameter.

TParam8

The type of the eighth query parameter.

TParam9

The type of the ninth query parameter.

TParam10

The type of the tenth query parameter.

TParam11

The type of the eleventh query parameter.

TResult

The query result type.

CompileAsyncQuery<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TResult>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, CancellationToken, TResult>>)

Creates a compiled query delegate that when invoked will execute the specified LINQ query.

public static Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, CancellationToken, Task<TResult>> CompileAsyncQuery<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TResult>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, CancellationToken, TResult>> queryExpression) where TContext : DbContext

Parameters

queryExpression Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, CancellationToken, TResult>>

The LINQ query expression.

Returns

Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, CancellationToken, Task<TResult>>

A delegate that can be invoked to execute the compiled query.

Type Parameters

TContext

The target DbContext type.

TParam1

The type of the first query parameter.

TParam2

The type of the second query parameter.

TParam3

The type of the third query parameter.

TParam4

The type of the fourth query parameter.

TParam5

The type of the fifth query parameter.

TParam6

The type of the sixth query parameter.

TParam7

The type of the seventh query parameter.

TParam8

The type of the eighth query parameter.

TParam9

The type of the ninth query parameter.

TParam10

The type of the tenth query parameter.

TParam11

The type of the eleventh query parameter.

TResult

The query result type.

CompileAsyncQuery<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TResult>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TResult>>)

Creates a compiled query delegate that when invoked will execute the specified LINQ query.

public static Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, Task<TResult>> CompileAsyncQuery<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TResult>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TResult>> queryExpression) where TContext : DbContext

Parameters

queryExpression Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TResult>>

The LINQ query expression.

Returns

Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, Task<TResult>>

A delegate that can be invoked to execute the compiled query.

Type Parameters

TContext

The target DbContext type.

TParam1

The type of the first query parameter.

TParam2

The type of the second query parameter.

TParam3

The type of the third query parameter.

TParam4

The type of the fourth query parameter.

TParam5

The type of the fifth query parameter.

TParam6

The type of the sixth query parameter.

TParam7

The type of the seventh query parameter.

TParam8

The type of the eighth query parameter.

TParam9

The type of the ninth query parameter.

TParam10

The type of the tenth query parameter.

TParam11

The type of the eleventh query parameter.

TResult

The query result type.

CompileAsyncQuery<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TResult, TProperty>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, IIncludableQueryable<TResult, TProperty>>>)

Creates a compiled query delegate that when invoked will execute the specified LINQ query.

public static Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, IAsyncEnumerable<TResult>> CompileAsyncQuery<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TResult, TProperty>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, IIncludableQueryable<TResult, TProperty>>> queryExpression) where TContext : DbContext

Parameters

queryExpression Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, IIncludableQueryable<TResult, TProperty>>>

The LINQ query expression.

Returns

Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, IAsyncEnumerable<TResult>>

A delegate that can be invoked to execute the compiled query.

Type Parameters

TContext

The target DbContext type.

TParam1

The type of the first query parameter.

TParam2

The type of the second query parameter.

TParam3

The type of the third query parameter.

TParam4

The type of the fourth query parameter.

TParam5

The type of the fifth query parameter.

TParam6

The type of the sixth query parameter.

TParam7

The type of the seventh query parameter.

TParam8

The type of the eighth query parameter.

TParam9

The type of the ninth query parameter.

TParam10

The type of the tenth query parameter.

TParam11

The type of the eleventh query parameter.

TResult

The query result type.

TProperty

The included property type.

CompileAsyncQuery<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TResult>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, IQueryable<TResult>>>)

Creates a compiled query delegate that when invoked will execute the specified LINQ query.

public static Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, IAsyncEnumerable<TResult>> CompileAsyncQuery<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TResult>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, IQueryable<TResult>>> queryExpression) where TContext : DbContext

Parameters

queryExpression Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, IQueryable<TResult>>>

The LINQ query expression.

Returns

Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, IAsyncEnumerable<TResult>>

A delegate that can be invoked to execute the compiled query.

Type Parameters

TContext

The target DbContext type.

TParam1

The type of the first query parameter.

TParam2

The type of the second query parameter.

TParam3

The type of the third query parameter.

TParam4

The type of the fourth query parameter.

TParam5

The type of the fifth query parameter.

TParam6

The type of the sixth query parameter.

TParam7

The type of the seventh query parameter.

TParam8

The type of the eighth query parameter.

TParam9

The type of the ninth query parameter.

TParam10

The type of the tenth query parameter.

TParam11

The type of the eleventh query parameter.

TParam12

The type of the twelfth query parameter.

TResult

The query result type.

CompileAsyncQuery<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TResult>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, CancellationToken, TResult>>)

Creates a compiled query delegate that when invoked will execute the specified LINQ query.

public static Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, CancellationToken, Task<TResult>> CompileAsyncQuery<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TResult>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, CancellationToken, TResult>> queryExpression) where TContext : DbContext

Parameters

queryExpression Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, CancellationToken, TResult>>

The LINQ query expression.

Returns

Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, CancellationToken, Task<TResult>>

A delegate that can be invoked to execute the compiled query.

Type Parameters

TContext

The target DbContext type.

TParam1

The type of the first query parameter.

TParam2

The type of the second query parameter.

TParam3

The type of the third query parameter.

TParam4

The type of the fourth query parameter.

TParam5

The type of the fifth query parameter.

TParam6

The type of the sixth query parameter.

TParam7

The type of the seventh query parameter.

TParam8

The type of the eighth query parameter.

TParam9

The type of the ninth query parameter.

TParam10

The type of the tenth query parameter.

TParam11

The type of the eleventh query parameter.

TParam12

The type of the twelfth query parameter.

TResult

The query result type.

CompileAsyncQuery<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TResult>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TResult>>)

Creates a compiled query delegate that when invoked will execute the specified LINQ query.

public static Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, Task<TResult>> CompileAsyncQuery<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TResult>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TResult>> queryExpression) where TContext : DbContext

Parameters

queryExpression Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TResult>>

The LINQ query expression.

Returns

Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, Task<TResult>>

A delegate that can be invoked to execute the compiled query.

Type Parameters

TContext

The target DbContext type.

TParam1

The type of the first query parameter.

TParam2

The type of the second query parameter.

TParam3

The type of the third query parameter.

TParam4

The type of the fourth query parameter.

TParam5

The type of the fifth query parameter.

TParam6

The type of the sixth query parameter.

TParam7

The type of the seventh query parameter.

TParam8

The type of the eighth query parameter.

TParam9

The type of the ninth query parameter.

TParam10

The type of the tenth query parameter.

TParam11

The type of the eleventh query parameter.

TParam12

The type of the twelfth query parameter.

TResult

The query result type.

CompileAsyncQuery<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TResult, TProperty>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, IIncludableQueryable<TResult, TProperty>>>)

Creates a compiled query delegate that when invoked will execute the specified LINQ query.

public static Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, IAsyncEnumerable<TResult>> CompileAsyncQuery<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TResult, TProperty>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, IIncludableQueryable<TResult, TProperty>>> queryExpression) where TContext : DbContext

Parameters

queryExpression Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, IIncludableQueryable<TResult, TProperty>>>

The LINQ query expression.

Returns

Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, IAsyncEnumerable<TResult>>

A delegate that can be invoked to execute the compiled query.

Type Parameters

TContext

The target DbContext type.

TParam1

The type of the first query parameter.

TParam2

The type of the second query parameter.

TParam3

The type of the third query parameter.

TParam4

The type of the fourth query parameter.

TParam5

The type of the fifth query parameter.

TParam6

The type of the sixth query parameter.

TParam7

The type of the seventh query parameter.

TParam8

The type of the eighth query parameter.

TParam9

The type of the ninth query parameter.

TParam10

The type of the tenth query parameter.

TParam11

The type of the eleventh query parameter.

TParam12

The type of the twelfth query parameter.

TResult

The query result type.

TProperty

The included property type.

CompileAsyncQuery<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TParam13, TResult>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TParam13, IQueryable<TResult>>>)

Creates a compiled query delegate that when invoked will execute the specified LINQ query.

public static Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TParam13, IAsyncEnumerable<TResult>> CompileAsyncQuery<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TParam13, TResult>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TParam13, IQueryable<TResult>>> queryExpression) where TContext : DbContext

Parameters

queryExpression Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TParam13, IQueryable<TResult>>>

The LINQ query expression.

Returns

Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TParam13, IAsyncEnumerable<TResult>>

A delegate that can be invoked to execute the compiled query.

Type Parameters

TContext

The target DbContext type.

TParam1

The type of the first query parameter.

TParam2

The type of the second query parameter.

TParam3

The type of the third query parameter.

TParam4

The type of the fourth query parameter.

TParam5

The type of the fifth query parameter.

TParam6

The type of the sixth query parameter.

TParam7

The type of the seventh query parameter.

TParam8

The type of the eighth query parameter.

TParam9

The type of the ninth query parameter.

TParam10

The type of the tenth query parameter.

TParam11

The type of the eleventh query parameter.

TParam12

The type of the twelfth query parameter.

TParam13

The type of the thirteenth query parameter.

TResult

The query result type.

CompileAsyncQuery<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TParam13, TResult>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TParam13, CancellationToken, TResult>>)

Creates a compiled query delegate that when invoked will execute the specified LINQ query.

public static Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TParam13, CancellationToken, Task<TResult>> CompileAsyncQuery<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TParam13, TResult>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TParam13, CancellationToken, TResult>> queryExpression) where TContext : DbContext

Parameters

queryExpression Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TParam13, CancellationToken, TResult>>

The LINQ query expression.

Returns

Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TParam13, CancellationToken, Task<TResult>>

A delegate that can be invoked to execute the compiled query.

Type Parameters

TContext

The target DbContext type.

TParam1

The type of the first query parameter.

TParam2

The type of the second query parameter.

TParam3

The type of the third query parameter.

TParam4

The type of the fourth query parameter.

TParam5

The type of the fifth query parameter.

TParam6

The type of the sixth query parameter.

TParam7

The type of the seventh query parameter.

TParam8

The type of the eighth query parameter.

TParam9

The type of the ninth query parameter.

TParam10

The type of the tenth query parameter.

TParam11

The type of the eleventh query parameter.

TParam12

The type of the twelfth query parameter.

TParam13

The type of the thirteenth query parameter.

TResult

The query result type.

CompileAsyncQuery<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TParam13, TResult>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TParam13, TResult>>)

Creates a compiled query delegate that when invoked will execute the specified LINQ query.

public static Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TParam13, Task<TResult>> CompileAsyncQuery<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TParam13, TResult>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TParam13, TResult>> queryExpression) where TContext : DbContext

Parameters

queryExpression Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TParam13, TResult>>

The LINQ query expression.

Returns

Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TParam13, Task<TResult>>

A delegate that can be invoked to execute the compiled query.

Type Parameters

TContext

The target DbContext type.

TParam1

The type of the first query parameter.

TParam2

The type of the second query parameter.

TParam3

The type of the third query parameter.

TParam4

The type of the fourth query parameter.

TParam5

The type of the fifth query parameter.

TParam6

The type of the sixth query parameter.

TParam7

The type of the seventh query parameter.

TParam8

The type of the eighth query parameter.

TParam9

The type of the ninth query parameter.

TParam10

The type of the tenth query parameter.

TParam11

The type of the eleventh query parameter.

TParam12

The type of the twelfth query parameter.

TParam13

The type of the thirteenth query parameter.

TResult

The query result type.

CompileAsyncQuery<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TParam13, TResult, TProperty>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TParam13, IIncludableQueryable<TResult, TProperty>>>)

Creates a compiled query delegate that when invoked will execute the specified LINQ query.

public static Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TParam13, IAsyncEnumerable<TResult>> CompileAsyncQuery<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TParam13, TResult, TProperty>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TParam13, IIncludableQueryable<TResult, TProperty>>> queryExpression) where TContext : DbContext

Parameters

queryExpression Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TParam13, IIncludableQueryable<TResult, TProperty>>>

The LINQ query expression.

Returns

Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TParam13, IAsyncEnumerable<TResult>>

A delegate that can be invoked to execute the compiled query.

Type Parameters

TContext

The target DbContext type.

TParam1

The type of the first query parameter.

TParam2

The type of the second query parameter.

TParam3

The type of the third query parameter.

TParam4

The type of the fourth query parameter.

TParam5

The type of the fifth query parameter.

TParam6

The type of the sixth query parameter.

TParam7

The type of the seventh query parameter.

TParam8

The type of the eighth query parameter.

TParam9

The type of the ninth query parameter.

TParam10

The type of the tenth query parameter.

TParam11

The type of the eleventh query parameter.

TParam12

The type of the twelfth query parameter.

TParam13

The type of the thirteenth query parameter.

TResult

The query result type.

TProperty

The included property type.

CompileAsyncQuery<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TParam13, TParam14, TResult>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TParam13, TParam14, IQueryable<TResult>>>)

Creates a compiled query delegate that when invoked will execute the specified LINQ query.

public static Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TParam13, TParam14, IAsyncEnumerable<TResult>> CompileAsyncQuery<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TParam13, TParam14, TResult>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TParam13, TParam14, IQueryable<TResult>>> queryExpression) where TContext : DbContext

Parameters

queryExpression Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TParam13, TParam14, IQueryable<TResult>>>

The LINQ query expression.

Returns

Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TParam13, TParam14, IAsyncEnumerable<TResult>>

A delegate that can be invoked to execute the compiled query.

Type Parameters

TContext

The target DbContext type.

TParam1

The type of the first query parameter.

TParam2

The type of the second query parameter.

TParam3

The type of the third query parameter.

TParam4

The type of the fourth query parameter.

TParam5

The type of the fifth query parameter.

TParam6

The type of the sixth query parameter.

TParam7

The type of the seventh query parameter.

TParam8

The type of the eighth query parameter.

TParam9

The type of the ninth query parameter.

TParam10

The type of the tenth query parameter.

TParam11

The type of the eleventh query parameter.

TParam12

The type of the twelfth query parameter.

TParam13

The type of the thirteenth query parameter.

TParam14

The type of the fourteenth query parameter.

TResult

The query result type.

CompileAsyncQuery<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TParam13, TParam14, TResult>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TParam13, TParam14, CancellationToken, TResult>>)

Creates a compiled query delegate that when invoked will execute the specified LINQ query.

public static Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TParam13, TParam14, CancellationToken, Task<TResult>> CompileAsyncQuery<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TParam13, TParam14, TResult>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TParam13, TParam14, CancellationToken, TResult>> queryExpression) where TContext : DbContext

Parameters

queryExpression Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TParam13, TParam14, CancellationToken, TResult>>

The LINQ query expression.

Returns

Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TParam13, TParam14, CancellationToken, Task<TResult>>

A delegate that can be invoked to execute the compiled query.

Type Parameters

TContext

The target DbContext type.

TParam1

The type of the first query parameter.

TParam2

The type of the second query parameter.

TParam3

The type of the third query parameter.

TParam4

The type of the fourth query parameter.

TParam5

The type of the fifth query parameter.

TParam6

The type of the sixth query parameter.

TParam7

The type of the seventh query parameter.

TParam8

The type of the eighth query parameter.

TParam9

The type of the ninth query parameter.

TParam10

The type of the tenth query parameter.

TParam11

The type of the eleventh query parameter.

TParam12

The type of the twelfth query parameter.

TParam13

The type of the thirteenth query parameter.

TParam14

The type of the fourteenth query parameter.

TResult

The query result type.

CompileAsyncQuery<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TParam13, TParam14, TResult>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TParam13, TParam14, TResult>>)

Creates a compiled query delegate that when invoked will execute the specified LINQ query.

public static Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TParam13, TParam14, Task<TResult>> CompileAsyncQuery<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TParam13, TParam14, TResult>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TParam13, TParam14, TResult>> queryExpression) where TContext : DbContext

Parameters

queryExpression Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TParam13, TParam14, TResult>>

The LINQ query expression.

Returns

Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TParam13, TParam14, Task<TResult>>

A delegate that can be invoked to execute the compiled query.

Type Parameters

TContext

The target DbContext type.

TParam1

The type of the first query parameter.

TParam2

The type of the second query parameter.

TParam3

The type of the third query parameter.

TParam4

The type of the fourth query parameter.

TParam5

The type of the fifth query parameter.

TParam6

The type of the sixth query parameter.

TParam7

The type of the seventh query parameter.

TParam8

The type of the eighth query parameter.

TParam9

The type of the ninth query parameter.

TParam10

The type of the tenth query parameter.

TParam11

The type of the eleventh query parameter.

TParam12

The type of the twelfth query parameter.

TParam13

The type of the thirteenth query parameter.

TParam14

The type of the fourteenth query parameter.

TResult

The query result type.

CompileAsyncQuery<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TParam13, TParam14, TResult, TProperty>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TParam13, TParam14, IIncludableQueryable<TResult, TProperty>>>)

Creates a compiled query delegate that when invoked will execute the specified LINQ query.

public static Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TParam13, TParam14, IAsyncEnumerable<TResult>> CompileAsyncQuery<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TParam13, TParam14, TResult, TProperty>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TParam13, TParam14, IIncludableQueryable<TResult, TProperty>>> queryExpression) where TContext : DbContext

Parameters

queryExpression Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TParam13, TParam14, IIncludableQueryable<TResult, TProperty>>>

The LINQ query expression.

Returns

Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TParam13, TParam14, IAsyncEnumerable<TResult>>

A delegate that can be invoked to execute the compiled query.

Type Parameters

TContext

The target DbContext type.

TParam1

The type of the first query parameter.

TParam2

The type of the second query parameter.

TParam3

The type of the third query parameter.

TParam4

The type of the fourth query parameter.

TParam5

The type of the fifth query parameter.

TParam6

The type of the sixth query parameter.

TParam7

The type of the seventh query parameter.

TParam8

The type of the eighth query parameter.

TParam9

The type of the ninth query parameter.

TParam10

The type of the tenth query parameter.

TParam11

The type of the eleventh query parameter.

TParam12

The type of the twelfth query parameter.

TParam13

The type of the thirteenth query parameter.

TParam14

The type of the fourteenth query parameter.

TResult

The query result type.

TProperty

The included property type.

CompileAsyncQuery<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TParam13, TParam14, TParam15, TResult>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TParam13, TParam14, TParam15, IQueryable<TResult>>>)

Creates a compiled query delegate that when invoked will execute the specified LINQ query.

public static Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TParam13, TParam14, TParam15, IAsyncEnumerable<TResult>> CompileAsyncQuery<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TParam13, TParam14, TParam15, TResult>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TParam13, TParam14, TParam15, IQueryable<TResult>>> queryExpression) where TContext : DbContext

Parameters

queryExpression Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TParam13, TParam14, TParam15, IQueryable<TResult>>>

The LINQ query expression.

Returns

Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TParam13, TParam14, TParam15, IAsyncEnumerable<TResult>>

A delegate that can be invoked to execute the compiled query.

Type Parameters

TContext

The target DbContext type.

TParam1

The type of the first query parameter.

TParam2

The type of the second query parameter.

TParam3

The type of the third query parameter.

TParam4

The type of the fourth query parameter.

TParam5

The type of the fifth query parameter.

TParam6

The type of the sixth query parameter.

TParam7

The type of the seventh query parameter.

TParam8

The type of the eighth query parameter.

TParam9

The type of the ninth query parameter.

TParam10

The type of the tenth query parameter.

TParam11

The type of the eleventh query parameter.

TParam12

The type of the twelfth query parameter.

TParam13

The type of the thirteenth query parameter.

TParam14

The type of the fourteenth query parameter.

TParam15

The type of the fifteenth query parameter.

TResult

The query result type.

CompileAsyncQuery<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TParam13, TParam14, TParam15, TResult>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TParam13, TParam14, TParam15, TResult>>)

Creates a compiled query delegate that when invoked will execute the specified LINQ query.

public static Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TParam13, TParam14, TParam15, Task<TResult>> CompileAsyncQuery<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TParam13, TParam14, TParam15, TResult>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TParam13, TParam14, TParam15, TResult>> queryExpression) where TContext : DbContext

Parameters

queryExpression Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TParam13, TParam14, TParam15, TResult>>

The LINQ query expression.

Returns

Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TParam13, TParam14, TParam15, Task<TResult>>

A delegate that can be invoked to execute the compiled query.

Type Parameters

TContext

The target DbContext type.

TParam1

The type of the first query parameter.

TParam2

The type of the second query parameter.

TParam3

The type of the third query parameter.

TParam4

The type of the fourth query parameter.

TParam5

The type of the fifth query parameter.

TParam6

The type of the sixth query parameter.

TParam7

The type of the seventh query parameter.

TParam8

The type of the eighth query parameter.

TParam9

The type of the ninth query parameter.

TParam10

The type of the tenth query parameter.

TParam11

The type of the eleventh query parameter.

TParam12

The type of the twelfth query parameter.

TParam13

The type of the thirteenth query parameter.

TParam14

The type of the fourteenth query parameter.

TParam15

The type of the fifteenth query parameter.

TResult

The query result type.

CompileAsyncQuery<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TParam13, TParam14, TParam15, TResult, TProperty>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TParam13, TParam14, TParam15, IIncludableQueryable<TResult, TProperty>>>)

Creates a compiled query delegate that when invoked will execute the specified LINQ query.

public static Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TParam13, TParam14, TParam15, IAsyncEnumerable<TResult>> CompileAsyncQuery<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TParam13, TParam14, TParam15, TResult, TProperty>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TParam13, TParam14, TParam15, IIncludableQueryable<TResult, TProperty>>> queryExpression) where TContext : DbContext

Parameters

queryExpression Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TParam13, TParam14, TParam15, IIncludableQueryable<TResult, TProperty>>>

The LINQ query expression.

Returns

Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TParam13, TParam14, TParam15, IAsyncEnumerable<TResult>>

A delegate that can be invoked to execute the compiled query.

Type Parameters

TContext

The target DbContext type.

TParam1

The type of the first query parameter.

TParam2

The type of the second query parameter.

TParam3

The type of the third query parameter.

TParam4

The type of the fourth query parameter.

TParam5

The type of the fifth query parameter.

TParam6

The type of the sixth query parameter.

TParam7

The type of the seventh query parameter.

TParam8

The type of the eighth query parameter.

TParam9

The type of the ninth query parameter.

TParam10

The type of the tenth query parameter.

TParam11

The type of the eleventh query parameter.

TParam12

The type of the twelfth query parameter.

TParam13

The type of the thirteenth query parameter.

TParam14

The type of the fourteenth query parameter.

TParam15

The type of the fifteenth query parameter.

TResult

The query result type.

TProperty

The included property type.

CompileAsyncQuery<TContext, TResult>(Expression<Func<TContext, DbSet<TResult>>>)

Creates a compiled query delegate that when invoked will execute the specified LINQ query.

public static Func<TContext, IAsyncEnumerable<TResult>> CompileAsyncQuery<TContext, TResult>(Expression<Func<TContext, DbSet<TResult>>> queryExpression) where TContext : DbContext where TResult : class

Parameters

queryExpression Expression<Func<TContext, DbSet<TResult>>>

The LINQ query expression.

Returns

Func<TContext, IAsyncEnumerable<TResult>>

A delegate that can be invoked to execute the compiled query.

Type Parameters

TContext

The target DbContext type.

TResult

The query result type.

CompileAsyncQuery<TContext, TResult>(Expression<Func<TContext, IQueryable<TResult>>>)

Creates a compiled query delegate that when invoked will execute the specified LINQ query.

public static Func<TContext, IAsyncEnumerable<TResult>> CompileAsyncQuery<TContext, TResult>(Expression<Func<TContext, IQueryable<TResult>>> queryExpression) where TContext : DbContext

Parameters

queryExpression Expression<Func<TContext, IQueryable<TResult>>>

The LINQ query expression.

Returns

Func<TContext, IAsyncEnumerable<TResult>>

A delegate that can be invoked to execute the compiled query.

Type Parameters

TContext

The target DbContext type.

TResult

The query result type.

CompileAsyncQuery<TContext, TResult>(Expression<Func<TContext, CancellationToken, TResult>>)

Creates a compiled query delegate that when invoked will execute the specified LINQ query.

public static Func<TContext, CancellationToken, Task<TResult>> CompileAsyncQuery<TContext, TResult>(Expression<Func<TContext, CancellationToken, TResult>> queryExpression) where TContext : DbContext

Parameters

queryExpression Expression<Func<TContext, CancellationToken, TResult>>

The LINQ query expression.

Returns

Func<TContext, CancellationToken, Task<TResult>>

A delegate that can be invoked to execute the compiled query.

Type Parameters

TContext

The target DbContext type.

TResult

The query result type.

CompileAsyncQuery<TContext, TResult>(Expression<Func<TContext, TResult>>)

Creates a compiled query delegate that when invoked will execute the specified LINQ query.

public static Func<TContext, Task<TResult>> CompileAsyncQuery<TContext, TResult>(Expression<Func<TContext, TResult>> queryExpression) where TContext : DbContext

Parameters

queryExpression Expression<Func<TContext, TResult>>

The LINQ query expression.

Returns

Func<TContext, Task<TResult>>

A delegate that can be invoked to execute the compiled query.

Type Parameters

TContext

The target DbContext type.

TResult

The query result type.

CompileAsyncQuery<TContext, TResult, TProperty>(Expression<Func<TContext, IIncludableQueryable<TResult, TProperty>>>)

Creates a compiled query delegate that when invoked will execute the specified LINQ query.

public static Func<TContext, IAsyncEnumerable<TResult>> CompileAsyncQuery<TContext, TResult, TProperty>(Expression<Func<TContext, IIncludableQueryable<TResult, TProperty>>> queryExpression) where TContext : DbContext

Parameters

queryExpression Expression<Func<TContext, IIncludableQueryable<TResult, TProperty>>>

The LINQ query expression.

Returns

Func<TContext, IAsyncEnumerable<TResult>>

A delegate that can be invoked to execute the compiled query.

Type Parameters

TContext

The target DbContext type.

TResult

The query result type.

TProperty

The included property type.

CompileAsyncQuery<TContext, TParam1, TResult>(Expression<Func<TContext, TParam1, IQueryable<TResult>>>)

Creates a compiled query delegate that when invoked will execute the specified LINQ query.

public static Func<TContext, TParam1, IAsyncEnumerable<TResult>> CompileAsyncQuery<TContext, TParam1, TResult>(Expression<Func<TContext, TParam1, IQueryable<TResult>>> queryExpression) where TContext : DbContext

Parameters

queryExpression Expression<Func<TContext, TParam1, IQueryable<TResult>>>

The LINQ query expression.

Returns

Func<TContext, TParam1, IAsyncEnumerable<TResult>>

A delegate that can be invoked to execute the compiled query.

Type Parameters

TContext

The target DbContext type.

TParam1

The type of the first query parameter.

TResult

The query result type.

CompileAsyncQuery<TContext, TParam1, TResult>(Expression<Func<TContext, TParam1, CancellationToken, TResult>>)

Creates a compiled query delegate that when invoked will execute the specified LINQ query.

public static Func<TContext, TParam1, CancellationToken, Task<TResult>> CompileAsyncQuery<TContext, TParam1, TResult>(Expression<Func<TContext, TParam1, CancellationToken, TResult>> queryExpression) where TContext : DbContext

Parameters

queryExpression Expression<Func<TContext, TParam1, CancellationToken, TResult>>

The LINQ query expression.

Returns

Func<TContext, TParam1, CancellationToken, Task<TResult>>

A delegate that can be invoked to execute the compiled query.

Type Parameters

TContext

The target DbContext type.

TParam1

The type of the first query parameter.

TResult

The query result type.

CompileAsyncQuery<TContext, TParam1, TResult>(Expression<Func<TContext, TParam1, TResult>>)

Creates a compiled query delegate that when invoked will execute the specified LINQ query.

public static Func<TContext, TParam1, Task<TResult>> CompileAsyncQuery<TContext, TParam1, TResult>(Expression<Func<TContext, TParam1, TResult>> queryExpression) where TContext : DbContext

Parameters

queryExpression Expression<Func<TContext, TParam1, TResult>>

The LINQ query expression.

Returns

Func<TContext, TParam1, Task<TResult>>

A delegate that can be invoked to execute the compiled query.

Type Parameters

TContext

The target DbContext type.

TParam1

The type of the first query parameter.

TResult

The query result type.

CompileAsyncQuery<TContext, TParam1, TResult, TProperty>(Expression<Func<TContext, TParam1, IIncludableQueryable<TResult, TProperty>>>)

Creates a compiled query delegate that when invoked will execute the specified LINQ query.

public static Func<TContext, TParam1, IAsyncEnumerable<TResult>> CompileAsyncQuery<TContext, TParam1, TResult, TProperty>(Expression<Func<TContext, TParam1, IIncludableQueryable<TResult, TProperty>>> queryExpression) where TContext : DbContext

Parameters

queryExpression Expression<Func<TContext, TParam1, IIncludableQueryable<TResult, TProperty>>>

The LINQ query expression.

Returns

Func<TContext, TParam1, IAsyncEnumerable<TResult>>

A delegate that can be invoked to execute the compiled query.

Type Parameters

TContext

The target DbContext type.

TParam1

The type of the first query parameter.

TResult

The query result type.

TProperty

The included property type.

CompileAsyncQuery<TContext, TParam1, TParam2, TResult>(Expression<Func<TContext, TParam1, TParam2, IQueryable<TResult>>>)

Creates a compiled query delegate that when invoked will execute the specified LINQ query.

public static Func<TContext, TParam1, TParam2, IAsyncEnumerable<TResult>> CompileAsyncQuery<TContext, TParam1, TParam2, TResult>(Expression<Func<TContext, TParam1, TParam2, IQueryable<TResult>>> queryExpression) where TContext : DbContext

Parameters

queryExpression Expression<Func<TContext, TParam1, TParam2, IQueryable<TResult>>>

The LINQ query expression.

Returns

Func<TContext, TParam1, TParam2, IAsyncEnumerable<TResult>>

A delegate that can be invoked to execute the compiled query.

Type Parameters

TContext

The target DbContext type.

TParam1

The type of the first query parameter.

TParam2

The type of the second query parameter.

TResult

The query result type.

CompileAsyncQuery<TContext, TParam1, TParam2, TResult>(Expression<Func<TContext, TParam1, TParam2, CancellationToken, TResult>>)

Creates a compiled query delegate that when invoked will execute the specified LINQ query.

public static Func<TContext, TParam1, TParam2, CancellationToken, Task<TResult>> CompileAsyncQuery<TContext, TParam1, TParam2, TResult>(Expression<Func<TContext, TParam1, TParam2, CancellationToken, TResult>> queryExpression) where TContext : DbContext

Parameters

queryExpression Expression<Func<TContext, TParam1, TParam2, CancellationToken, TResult>>

The LINQ query expression.

Returns

Func<TContext, TParam1, TParam2, CancellationToken, Task<TResult>>

A delegate that can be invoked to execute the compiled query.

Type Parameters

TContext

The target DbContext type.

TParam1

The type of the first query parameter.

TParam2

The type of the second query parameter.

TResult

The query result type.

CompileAsyncQuery<TContext, TParam1, TParam2, TResult>(Expression<Func<TContext, TParam1, TParam2, TResult>>)

Creates a compiled query delegate that when invoked will execute the specified LINQ query.

public static Func<TContext, TParam1, TParam2, Task<TResult>> CompileAsyncQuery<TContext, TParam1, TParam2, TResult>(Expression<Func<TContext, TParam1, TParam2, TResult>> queryExpression) where TContext : DbContext

Parameters

queryExpression Expression<Func<TContext, TParam1, TParam2, TResult>>

The LINQ query expression.

Returns

Func<TContext, TParam1, TParam2, Task<TResult>>

A delegate that can be invoked to execute the compiled query.

Type Parameters

TContext

The target DbContext type.

TParam1

The type of the first query parameter.

TParam2

The type of the second query parameter.

TResult

The query result type.

CompileAsyncQuery<TContext, TParam1, TParam2, TResult, TProperty>(Expression<Func<TContext, TParam1, TParam2, IIncludableQueryable<TResult, TProperty>>>)

Creates a compiled query delegate that when invoked will execute the specified LINQ query.

public static Func<TContext, TParam1, TParam2, IAsyncEnumerable<TResult>> CompileAsyncQuery<TContext, TParam1, TParam2, TResult, TProperty>(Expression<Func<TContext, TParam1, TParam2, IIncludableQueryable<TResult, TProperty>>> queryExpression) where TContext : DbContext

Parameters

queryExpression Expression<Func<TContext, TParam1, TParam2, IIncludableQueryable<TResult, TProperty>>>

The LINQ query expression.

Returns

Func<TContext, TParam1, TParam2, IAsyncEnumerable<TResult>>

A delegate that can be invoked to execute the compiled query.

Type Parameters

TContext

The target DbContext type.

TParam1

The type of the first query parameter.

TParam2

The type of the second query parameter.

TResult

The query result type.

TProperty

The included property type.

CompileAsyncQuery<TContext, TParam1, TParam2, TParam3, TResult>(Expression<Func<TContext, TParam1, TParam2, TParam3, IQueryable<TResult>>>)

Creates a compiled query delegate that when invoked will execute the specified LINQ query.

public static Func<TContext, TParam1, TParam2, TParam3, IAsyncEnumerable<TResult>> CompileAsyncQuery<TContext, TParam1, TParam2, TParam3, TResult>(Expression<Func<TContext, TParam1, TParam2, TParam3, IQueryable<TResult>>> queryExpression) where TContext : DbContext

Parameters

queryExpression Expression<Func<TContext, TParam1, TParam2, TParam3, IQueryable<TResult>>>

The LINQ query expression.

Returns

Func<TContext, TParam1, TParam2, TParam3, IAsyncEnumerable<TResult>>

A delegate that can be invoked to execute the compiled query.

Type Parameters

TContext

The target DbContext type.

TParam1

The type of the first query parameter.

TParam2

The type of the second query parameter.

TParam3

The type of the third query parameter.

TResult

The query result type.

CompileAsyncQuery<TContext, TParam1, TParam2, TParam3, TResult>(Expression<Func<TContext, TParam1, TParam2, TParam3, CancellationToken, TResult>>)

Creates a compiled query delegate that when invoked will execute the specified LINQ query.

public static Func<TContext, TParam1, TParam2, TParam3, CancellationToken, Task<TResult>> CompileAsyncQuery<TContext, TParam1, TParam2, TParam3, TResult>(Expression<Func<TContext, TParam1, TParam2, TParam3, CancellationToken, TResult>> queryExpression) where TContext : DbContext

Parameters

queryExpression Expression<Func<TContext, TParam1, TParam2, TParam3, CancellationToken, TResult>>

The LINQ query expression.

Returns

Func<TContext, TParam1, TParam2, TParam3, CancellationToken, Task<TResult>>

A delegate that can be invoked to execute the compiled query.

Type Parameters

TContext

The target DbContext type.

TParam1

The type of the first query parameter.

TParam2

The type of the second query parameter.

TParam3

The type of the third query parameter.

TResult

The query result type.

CompileAsyncQuery<TContext, TParam1, TParam2, TParam3, TResult>(Expression<Func<TContext, TParam1, TParam2, TParam3, TResult>>)

Creates a compiled query delegate that when invoked will execute the specified LINQ query.

public static Func<TContext, TParam1, TParam2, TParam3, Task<TResult>> CompileAsyncQuery<TContext, TParam1, TParam2, TParam3, TResult>(Expression<Func<TContext, TParam1, TParam2, TParam3, TResult>> queryExpression) where TContext : DbContext

Parameters

queryExpression Expression<Func<TContext, TParam1, TParam2, TParam3, TResult>>

The LINQ query expression.

Returns

Func<TContext, TParam1, TParam2, TParam3, Task<TResult>>

A delegate that can be invoked to execute the compiled query.

Type Parameters

TContext

The target DbContext type.

TParam1

The type of the first query parameter.

TParam2

The type of the second query parameter.

TParam3

The type of the third query parameter.

TResult

The query result type.

CompileAsyncQuery<TContext, TParam1, TParam2, TParam3, TResult, TProperty>(Expression<Func<TContext, TParam1, TParam2, TParam3, IIncludableQueryable<TResult, TProperty>>>)

Creates a compiled query delegate that when invoked will execute the specified LINQ query.

public static Func<TContext, TParam1, TParam2, TParam3, IAsyncEnumerable<TResult>> CompileAsyncQuery<TContext, TParam1, TParam2, TParam3, TResult, TProperty>(Expression<Func<TContext, TParam1, TParam2, TParam3, IIncludableQueryable<TResult, TProperty>>> queryExpression) where TContext : DbContext

Parameters

queryExpression Expression<Func<TContext, TParam1, TParam2, TParam3, IIncludableQueryable<TResult, TProperty>>>

The LINQ query expression.

Returns

Func<TContext, TParam1, TParam2, TParam3, IAsyncEnumerable<TResult>>

A delegate that can be invoked to execute the compiled query.

Type Parameters

TContext

The target DbContext type.

TParam1

The type of the first query parameter.

TParam2

The type of the second query parameter.

TParam3

The type of the third query parameter.

TResult

The query result type.

TProperty

The included property type.

CompileAsyncQuery<TContext, TParam1, TParam2, TParam3, TParam4, TResult>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, IQueryable<TResult>>>)

Creates a compiled query delegate that when invoked will execute the specified LINQ query.

public static Func<TContext, TParam1, TParam2, TParam3, TParam4, IAsyncEnumerable<TResult>> CompileAsyncQuery<TContext, TParam1, TParam2, TParam3, TParam4, TResult>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, IQueryable<TResult>>> queryExpression) where TContext : DbContext

Parameters

queryExpression Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, IQueryable<TResult>>>

The LINQ query expression.

Returns

Func<TContext, TParam1, TParam2, TParam3, TParam4, IAsyncEnumerable<TResult>>

A delegate that can be invoked to execute the compiled query.

Type Parameters

TContext

The target DbContext type.

TParam1

The type of the first query parameter.

TParam2

The type of the second query parameter.

TParam3

The type of the third query parameter.

TParam4

The type of the fourth query parameter.

TResult

The query result type.

CompileAsyncQuery<TContext, TParam1, TParam2, TParam3, TParam4, TResult>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, CancellationToken, TResult>>)

Creates a compiled query delegate that when invoked will execute the specified LINQ query.

public static Func<TContext, TParam1, TParam2, TParam3, TParam4, CancellationToken, Task<TResult>> CompileAsyncQuery<TContext, TParam1, TParam2, TParam3, TParam4, TResult>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, CancellationToken, TResult>> queryExpression) where TContext : DbContext

Parameters

queryExpression Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, CancellationToken, TResult>>

The LINQ query expression.

Returns

Func<TContext, TParam1, TParam2, TParam3, TParam4, CancellationToken, Task<TResult>>

A delegate that can be invoked to execute the compiled query.

Type Parameters

TContext

The target DbContext type.

TParam1

The type of the first query parameter.

TParam2

The type of the second query parameter.

TParam3

The type of the third query parameter.

TParam4

The type of the fourth query parameter.

TResult

The query result type.

CompileAsyncQuery<TContext, TParam1, TParam2, TParam3, TParam4, TResult>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TResult>>)

Creates a compiled query delegate that when invoked will execute the specified LINQ query.

public static Func<TContext, TParam1, TParam2, TParam3, TParam4, Task<TResult>> CompileAsyncQuery<TContext, TParam1, TParam2, TParam3, TParam4, TResult>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TResult>> queryExpression) where TContext : DbContext

Parameters

queryExpression Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TResult>>

The LINQ query expression.

Returns

Func<TContext, TParam1, TParam2, TParam3, TParam4, Task<TResult>>

A delegate that can be invoked to execute the compiled query.

Type Parameters

TContext

The target DbContext type.

TParam1

The type of the first query parameter.

TParam2

The type of the second query parameter.

TParam3

The type of the third query parameter.

TParam4

The type of the fourth query parameter.

TResult

The query result type.

CompileAsyncQuery<TContext, TParam1, TParam2, TParam3, TParam4, TResult, TProperty>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, IIncludableQueryable<TResult, TProperty>>>)

Creates a compiled query delegate that when invoked will execute the specified LINQ query.

public static Func<TContext, TParam1, TParam2, TParam3, TParam4, IAsyncEnumerable<TResult>> CompileAsyncQuery<TContext, TParam1, TParam2, TParam3, TParam4, TResult, TProperty>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, IIncludableQueryable<TResult, TProperty>>> queryExpression) where TContext : DbContext

Parameters

queryExpression Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, IIncludableQueryable<TResult, TProperty>>>

The LINQ query expression.

Returns

Func<TContext, TParam1, TParam2, TParam3, TParam4, IAsyncEnumerable<TResult>>

A delegate that can be invoked to execute the compiled query.

Type Parameters

TContext

The target DbContext type.

TParam1

The type of the first query parameter.

TParam2

The type of the second query parameter.

TParam3

The type of the third query parameter.

TParam4

The type of the fourth query parameter.

TResult

The query result type.

TProperty

The included property type.

CompileAsyncQuery<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TResult>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, IQueryable<TResult>>>)

Creates a compiled query delegate that when invoked will execute the specified LINQ query.

public static Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, IAsyncEnumerable<TResult>> CompileAsyncQuery<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TResult>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, IQueryable<TResult>>> queryExpression) where TContext : DbContext

Parameters

queryExpression Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, IQueryable<TResult>>>

The LINQ query expression.

Returns

Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, IAsyncEnumerable<TResult>>

A delegate that can be invoked to execute the compiled query.

Type Parameters

TContext

The target DbContext type.

TParam1

The type of the first query parameter.

TParam2

The type of the second query parameter.

TParam3

The type of the third query parameter.

TParam4

The type of the fourth query parameter.

TParam5

The type of the fifth query parameter.

TResult

The query result type.

CompileAsyncQuery<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TResult>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, CancellationToken, TResult>>)

Creates a compiled query delegate that when invoked will execute the specified LINQ query.

public static Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, CancellationToken, Task<TResult>> CompileAsyncQuery<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TResult>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, CancellationToken, TResult>> queryExpression) where TContext : DbContext

Parameters

queryExpression Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, CancellationToken, TResult>>

The LINQ query expression.

Returns

Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, CancellationToken, Task<TResult>>

A delegate that can be invoked to execute the compiled query.

Type Parameters

TContext

The target DbContext type.

TParam1

The type of the first query parameter.

TParam2

The type of the second query parameter.

TParam3

The type of the third query parameter.

TParam4

The type of the fourth query parameter.

TParam5

The type of the fifth query parameter.

TResult

The query result type.

CompileAsyncQuery<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TResult>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TResult>>)

Creates a compiled query delegate that when invoked will execute the specified LINQ query.

public static Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, Task<TResult>> CompileAsyncQuery<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TResult>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TResult>> queryExpression) where TContext : DbContext

Parameters

queryExpression Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TResult>>

The LINQ query expression.

Returns

Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, Task<TResult>>

A delegate that can be invoked to execute the compiled query.

Type Parameters

TContext

The target DbContext type.

TParam1

The type of the first query parameter.

TParam2

The type of the second query parameter.

TParam3

The type of the third query parameter.

TParam4

The type of the fourth query parameter.

TParam5

The type of the fifth query parameter.

TResult

The query result type.

CompileAsyncQuery<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TResult, TProperty>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, IIncludableQueryable<TResult, TProperty>>>)

Creates a compiled query delegate that when invoked will execute the specified LINQ query.

public static Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, IAsyncEnumerable<TResult>> CompileAsyncQuery<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TResult, TProperty>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, IIncludableQueryable<TResult, TProperty>>> queryExpression) where TContext : DbContext

Parameters

queryExpression Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, IIncludableQueryable<TResult, TProperty>>>

The LINQ query expression.

Returns

Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, IAsyncEnumerable<TResult>>

A delegate that can be invoked to execute the compiled query.

Type Parameters

TContext

The target DbContext type.

TParam1

The type of the first query parameter.

TParam2

The type of the second query parameter.

TParam3

The type of the third query parameter.

TParam4

The type of the fourth query parameter.

TParam5

The type of the fifth query parameter.

TResult

The query result type.

TProperty

The included property type.

CompileAsyncQuery<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TResult>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, IQueryable<TResult>>>)

Creates a compiled query delegate that when invoked will execute the specified LINQ query.

public static Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, IAsyncEnumerable<TResult>> CompileAsyncQuery<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TResult>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, IQueryable<TResult>>> queryExpression) where TContext : DbContext

Parameters

queryExpression Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, IQueryable<TResult>>>

The LINQ query expression.

Returns

Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, IAsyncEnumerable<TResult>>

A delegate that can be invoked to execute the compiled query.

Type Parameters

TContext

The target DbContext type.

TParam1

The type of the first query parameter.

TParam2

The type of the second query parameter.

TParam3

The type of the third query parameter.

TParam4

The type of the fourth query parameter.

TParam5

The type of the fifth query parameter.

TParam6

The type of the sixth query parameter.

TResult

The query result type.

CompileAsyncQuery<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TResult>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, CancellationToken, TResult>>)

Creates a compiled query delegate that when invoked will execute the specified LINQ query.

public static Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, CancellationToken, Task<TResult>> CompileAsyncQuery<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TResult>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, CancellationToken, TResult>> queryExpression) where TContext : DbContext

Parameters

queryExpression Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, CancellationToken, TResult>>

The LINQ query expression.

Returns

Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, CancellationToken, Task<TResult>>

A delegate that can be invoked to execute the compiled query.

Type Parameters

TContext

The target DbContext type.

TParam1

The type of the first query parameter.

TParam2

The type of the second query parameter.

TParam3

The type of the third query parameter.

TParam4

The type of the fourth query parameter.

TParam5

The type of the fifth query parameter.

TParam6

The type of the sixth query parameter.

TResult

The query result type.

CompileAsyncQuery<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TResult>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TResult>>)

Creates a compiled query delegate that when invoked will execute the specified LINQ query.

public static Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, Task<TResult>> CompileAsyncQuery<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TResult>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TResult>> queryExpression) where TContext : DbContext

Parameters

queryExpression Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TResult>>

The LINQ query expression.

Returns

Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, Task<TResult>>

A delegate that can be invoked to execute the compiled query.

Type Parameters

TContext

The target DbContext type.

TParam1

The type of the first query parameter.

TParam2

The type of the second query parameter.

TParam3

The type of the third query parameter.

TParam4

The type of the fourth query parameter.

TParam5

The type of the fifth query parameter.

TParam6

The type of the sixth query parameter.

TResult

The query result type.

CompileAsyncQuery<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TResult, TProperty>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, IIncludableQueryable<TResult, TProperty>>>)

Creates a compiled query delegate that when invoked will execute the specified LINQ query.

public static Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, IAsyncEnumerable<TResult>> CompileAsyncQuery<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TResult, TProperty>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, IIncludableQueryable<TResult, TProperty>>> queryExpression) where TContext : DbContext

Parameters

queryExpression Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, IIncludableQueryable<TResult, TProperty>>>

The LINQ query expression.

Returns

Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, IAsyncEnumerable<TResult>>

A delegate that can be invoked to execute the compiled query.

Type Parameters

TContext

The target DbContext type.

TParam1

The type of the first query parameter.

TParam2

The type of the second query parameter.

TParam3

The type of the third query parameter.

TParam4

The type of the fourth query parameter.

TParam5

The type of the fifth query parameter.

TParam6

The type of the sixth query parameter.

TResult

The query result type.

TProperty

The included property type.

CompileAsyncQuery<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TResult>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, IQueryable<TResult>>>)

Creates a compiled query delegate that when invoked will execute the specified LINQ query.

public static Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, IAsyncEnumerable<TResult>> CompileAsyncQuery<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TResult>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, IQueryable<TResult>>> queryExpression) where TContext : DbContext

Parameters

queryExpression Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, IQueryable<TResult>>>

The LINQ query expression.

Returns

Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, IAsyncEnumerable<TResult>>

A delegate that can be invoked to execute the compiled query.

Type Parameters

TContext

The target DbContext type.

TParam1

The type of the first query parameter.

TParam2

The type of the second query parameter.

TParam3

The type of the third query parameter.

TParam4

The type of the fourth query parameter.

TParam5

The type of the fifth query parameter.

TParam6

The type of the sixth query parameter.

TParam7

The type of the seventh query parameter.

TResult

The query result type.

CompileAsyncQuery<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TResult>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, CancellationToken, TResult>>)

Creates a compiled query delegate that when invoked will execute the specified LINQ query.

public static Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, CancellationToken, Task<TResult>> CompileAsyncQuery<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TResult>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, CancellationToken, TResult>> queryExpression) where TContext : DbContext

Parameters

queryExpression Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, CancellationToken, TResult>>

The LINQ query expression.

Returns

Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, CancellationToken, Task<TResult>>

A delegate that can be invoked to execute the compiled query.

Type Parameters

TContext

The target DbContext type.

TParam1

The type of the first query parameter.

TParam2

The type of the second query parameter.

TParam3

The type of the third query parameter.

TParam4

The type of the fourth query parameter.

TParam5

The type of the fifth query parameter.

TParam6

The type of the sixth query parameter.

TParam7

The type of the seventh query parameter.

TResult

The query result type.

CompileAsyncQuery<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TResult>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TResult>>)

Creates a compiled query delegate that when invoked will execute the specified LINQ query.

public static Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, Task<TResult>> CompileAsyncQuery<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TResult>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TResult>> queryExpression) where TContext : DbContext

Parameters

queryExpression Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TResult>>

The LINQ query expression.

Returns

Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, Task<TResult>>

A delegate that can be invoked to execute the compiled query.

Type Parameters

TContext

The target DbContext type.

TParam1

The type of the first query parameter.

TParam2

The type of the second query parameter.

TParam3

The type of the third query parameter.

TParam4

The type of the fourth query parameter.

TParam5

The type of the fifth query parameter.

TParam6

The type of the sixth query parameter.

TParam7

The type of the seventh query parameter.

TResult

The query result type.

CompileQuery<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TResult, TProperty>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, IIncludableQueryable<TResult, TProperty>>>)

Creates a compiled query delegate that when invoked will execute the specified LINQ query.

public static Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, IEnumerable<TResult>> CompileQuery<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TResult, TProperty>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, IIncludableQueryable<TResult, TProperty>>> queryExpression) where TContext : DbContext

Parameters

queryExpression Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, IIncludableQueryable<TResult, TProperty>>>

The LINQ query expression.

Returns

Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, IEnumerable<TResult>>

A delegate that can be invoked to execute the compiled query.

Type Parameters

TContext

The target DbContext type.

TParam1

The type of the first query parameter.

TParam2

The type of the second query parameter.

TParam3

The type of the third query parameter.

TParam4

The type of the fourth query parameter.

TParam5

The type of the fifth query parameter.

TParam6

The type of the sixth query parameter.

TParam7

The type of the seventh query parameter.

TResult

The query result type.

TProperty

The included property type.

CompileQuery<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TResult>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, IQueryable<TResult>>>)

Creates a compiled query delegate that when invoked will execute the specified LINQ query.

public static Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, IEnumerable<TResult>> CompileQuery<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TResult>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, IQueryable<TResult>>> queryExpression) where TContext : DbContext

Parameters

queryExpression Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, IQueryable<TResult>>>

The LINQ query expression.

Returns

Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, IEnumerable<TResult>>

A delegate that can be invoked to execute the compiled query.

Type Parameters

TContext

The target DbContext type.

TParam1

The type of the first query parameter.

TParam2

The type of the second query parameter.

TParam3

The type of the third query parameter.

TParam4

The type of the fourth query parameter.

TParam5

The type of the fifth query parameter.

TParam6

The type of the sixth query parameter.

TParam7

The type of the seventh query parameter.

TParam8

The type of the eighth query parameter.

TResult

The query result type.

CompileQuery<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TResult>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TResult>>)

Creates a compiled query delegate that when invoked will execute the specified LINQ query.

public static Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TResult> CompileQuery<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TResult>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TResult>> queryExpression) where TContext : DbContext

Parameters

queryExpression Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TResult>>

The LINQ query expression.

Returns

Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TResult>

A delegate that can be invoked to execute the compiled query.

Type Parameters

TContext

The target DbContext type.

TParam1

The type of the first query parameter.

TParam2

The type of the second query parameter.

TParam3

The type of the third query parameter.

TParam4

The type of the fourth query parameter.

TParam5

The type of the fifth query parameter.

TParam6

The type of the sixth query parameter.

TParam7

The type of the seventh query parameter.

TParam8

The type of the eighth query parameter.

TResult

The query result type.

CompileQuery<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TResult, TProperty>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, IIncludableQueryable<TResult, TProperty>>>)

Creates a compiled query delegate that when invoked will execute the specified LINQ query.

public static Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, IEnumerable<TResult>> CompileQuery<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TResult, TProperty>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, IIncludableQueryable<TResult, TProperty>>> queryExpression) where TContext : DbContext

Parameters

queryExpression Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, IIncludableQueryable<TResult, TProperty>>>

The LINQ query expression.

Returns

Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, IEnumerable<TResult>>

A delegate that can be invoked to execute the compiled query.

Type Parameters

TContext

The target DbContext type.

TParam1

The type of the first query parameter.

TParam2

The type of the second query parameter.

TParam3

The type of the third query parameter.

TParam4

The type of the fourth query parameter.

TParam5

The type of the fifth query parameter.

TParam6

The type of the sixth query parameter.

TParam7

The type of the seventh query parameter.

TParam8

The type of the eighth query parameter.

TResult

The query result type.

TProperty

The included property type.

CompileQuery<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TResult>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, IQueryable<TResult>>>)

Creates a compiled query delegate that when invoked will execute the specified LINQ query.

public static Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, IEnumerable<TResult>> CompileQuery<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TResult>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, IQueryable<TResult>>> queryExpression) where TContext : DbContext

Parameters

queryExpression Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, IQueryable<TResult>>>

The LINQ query expression.

Returns

Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, IEnumerable<TResult>>

A delegate that can be invoked to execute the compiled query.

Type Parameters

TContext

The target DbContext type.

TParam1

The type of the first query parameter.

TParam2

The type of the second query parameter.

TParam3

The type of the third query parameter.

TParam4

The type of the fourth query parameter.

TParam5

The type of the fifth query parameter.

TParam6

The type of the sixth query parameter.

TParam7

The type of the seventh query parameter.

TParam8

The type of the eighth query parameter.

TParam9

The type of the ninth query parameter.

TResult

The query result type.

CompileQuery<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TResult>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TResult>>)

Creates a compiled query delegate that when invoked will execute the specified LINQ query.

public static Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TResult> CompileQuery<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TResult>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TResult>> queryExpression) where TContext : DbContext

Parameters

queryExpression Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TResult>>

The LINQ query expression.

Returns

Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TResult>

A delegate that can be invoked to execute the compiled query.

Type Parameters

TContext

The target DbContext type.

TParam1

The type of the first query parameter.

TParam2

The type of the second query parameter.

TParam3

The type of the third query parameter.

TParam4

The type of the fourth query parameter.

TParam5

The type of the fifth query parameter.

TParam6

The type of the sixth query parameter.

TParam7

The type of the seventh query parameter.

TParam8

The type of the eighth query parameter.

TParam9

The type of the ninth query parameter.

TResult

The query result type.

CompileQuery<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TResult, TProperty>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, IIncludableQueryable<TResult, TProperty>>>)

Creates a compiled query delegate that when invoked will execute the specified LINQ query.

public static Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, IEnumerable<TResult>> CompileQuery<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TResult, TProperty>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, IIncludableQueryable<TResult, TProperty>>> queryExpression) where TContext : DbContext

Parameters

queryExpression Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, IIncludableQueryable<TResult, TProperty>>>

The LINQ query expression.

Returns

Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, IEnumerable<TResult>>

A delegate that can be invoked to execute the compiled query.

Type Parameters

TContext

The target DbContext type.

TParam1

The type of the first query parameter.

TParam2

The type of the second query parameter.

TParam3

The type of the third query parameter.

TParam4

The type of the fourth query parameter.

TParam5

The type of the fifth query parameter.

TParam6

The type of the sixth query parameter.

TParam7

The type of the seventh query parameter.

TParam8

The type of the eighth query parameter.

TParam9

The type of the ninth query parameter.

TResult

The query result type.

TProperty

The included property type.

CompileQuery<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TResult>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, IQueryable<TResult>>>)

Creates a compiled query delegate that when invoked will execute the specified LINQ query.

public static Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, IEnumerable<TResult>> CompileQuery<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TResult>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, IQueryable<TResult>>> queryExpression) where TContext : DbContext

Parameters

queryExpression Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, IQueryable<TResult>>>

The LINQ query expression.

Returns

Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, IEnumerable<TResult>>

A delegate that can be invoked to execute the compiled query.

Type Parameters

TContext

The target DbContext type.

TParam1

The type of the first query parameter.

TParam2

The type of the second query parameter.

TParam3

The type of the third query parameter.

TParam4

The type of the fourth query parameter.

TParam5

The type of the fifth query parameter.

TParam6

The type of the sixth query parameter.

TParam7

The type of the seventh query parameter.

TParam8

The type of the eighth query parameter.

TParam9

The type of the ninth query parameter.

TParam10

The type of the tenth query parameter.

TResult

The query result type.

CompileQuery<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TResult>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TResult>>)

Creates a compiled query delegate that when invoked will execute the specified LINQ query.

public static Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TResult> CompileQuery<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TResult>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TResult>> queryExpression) where TContext : DbContext

Parameters

queryExpression Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TResult>>

The LINQ query expression.

Returns

Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TResult>

A delegate that can be invoked to execute the compiled query.

Type Parameters

TContext

The target DbContext type.

TParam1

The type of the first query parameter.

TParam2

The type of the second query parameter.

TParam3

The type of the third query parameter.

TParam4

The type of the fourth query parameter.

TParam5

The type of the fifth query parameter.

TParam6

The type of the sixth query parameter.

TParam7

The type of the seventh query parameter.

TParam8

The type of the eighth query parameter.

TParam9

The type of the ninth query parameter.

TParam10

The type of the tenth query parameter.

TResult

The query result type.

CompileQuery<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TResult, TProperty>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, IIncludableQueryable<TResult, TProperty>>>)

Creates a compiled query delegate that when invoked will execute the specified LINQ query.

public static Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, IEnumerable<TResult>> CompileQuery<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TResult, TProperty>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, IIncludableQueryable<TResult, TProperty>>> queryExpression) where TContext : DbContext

Parameters

queryExpression Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, IIncludableQueryable<TResult, TProperty>>>

The LINQ query expression.

Returns

Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, IEnumerable<TResult>>

A delegate that can be invoked to execute the compiled query.

Type Parameters

TContext

The target DbContext type.

TParam1

The type of the first query parameter.

TParam2

The type of the second query parameter.

TParam3

The type of the third query parameter.

TParam4

The type of the fourth query parameter.

TParam5

The type of the fifth query parameter.

TParam6

The type of the sixth query parameter.

TParam7

The type of the seventh query parameter.

TParam8

The type of the eighth query parameter.

TParam9

The type of the ninth query parameter.

TParam10

The type of the tenth query parameter.

TResult

The query result type.

TProperty

The included property type.

CompileQuery<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TResult>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, IQueryable<TResult>>>)

Creates a compiled query delegate that when invoked will execute the specified LINQ query.

public static Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, IEnumerable<TResult>> CompileQuery<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TResult>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, IQueryable<TResult>>> queryExpression) where TContext : DbContext

Parameters

queryExpression Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, IQueryable<TResult>>>

The LINQ query expression.

Returns

Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, IEnumerable<TResult>>

A delegate that can be invoked to execute the compiled query.

Type Parameters

TContext

The target DbContext type.

TParam1

The type of the first query parameter.

TParam2

The type of the second query parameter.

TParam3

The type of the third query parameter.

TParam4

The type of the fourth query parameter.

TParam5

The type of the fifth query parameter.

TParam6

The type of the sixth query parameter.

TParam7

The type of the seventh query parameter.

TParam8

The type of the eighth query parameter.

TParam9

The type of the ninth query parameter.

TParam10

The type of the tenth query parameter.

TParam11

The type of the eleventh query parameter.

TResult

The query result type.

CompileQuery<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TResult>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TResult>>)

Creates a compiled query delegate that when invoked will execute the specified LINQ query.

public static Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TResult> CompileQuery<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TResult>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TResult>> queryExpression) where TContext : DbContext

Parameters

queryExpression Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TResult>>

The LINQ query expression.

Returns

Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TResult>

A delegate that can be invoked to execute the compiled query.

Type Parameters

TContext

The target DbContext type.

TParam1

The type of the first query parameter.

TParam2

The type of the second query parameter.

TParam3

The type of the third query parameter.

TParam4

The type of the fourth query parameter.

TParam5

The type of the fifth query parameter.

TParam6

The type of the sixth query parameter.

TParam7

The type of the seventh query parameter.

TParam8

The type of the eighth query parameter.

TParam9

The type of the ninth query parameter.

TParam10

The type of the tenth query parameter.

TParam11

The type of the eleventh query parameter.

TResult

The query result type.

CompileQuery<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TResult, TProperty>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, IIncludableQueryable<TResult, TProperty>>>)

Creates a compiled query delegate that when invoked will execute the specified LINQ query.

public static Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, IEnumerable<TResult>> CompileQuery<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TResult, TProperty>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, IIncludableQueryable<TResult, TProperty>>> queryExpression) where TContext : DbContext

Parameters

queryExpression Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, IIncludableQueryable<TResult, TProperty>>>

The LINQ query expression.

Returns

Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, IEnumerable<TResult>>

A delegate that can be invoked to execute the compiled query.

Type Parameters

TContext

The target DbContext type.

TParam1

The type of the first query parameter.

TParam2

The type of the second query parameter.

TParam3

The type of the third query parameter.

TParam4

The type of the fourth query parameter.

TParam5

The type of the fifth query parameter.

TParam6

The type of the sixth query parameter.

TParam7

The type of the seventh query parameter.

TParam8

The type of the eighth query parameter.

TParam9

The type of the ninth query parameter.

TParam10

The type of the tenth query parameter.

TParam11

The type of the eleventh query parameter.

TResult

The query result type.

TProperty

The included property type.

CompileQuery<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TResult>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, IQueryable<TResult>>>)

Creates a compiled query delegate that when invoked will execute the specified LINQ query.

public static Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, IEnumerable<TResult>> CompileQuery<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TResult>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, IQueryable<TResult>>> queryExpression) where TContext : DbContext

Parameters

queryExpression Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, IQueryable<TResult>>>

The LINQ query expression.

Returns

Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, IEnumerable<TResult>>

A delegate that can be invoked to execute the compiled query.

Type Parameters

TContext

The target DbContext type.

TParam1

The type of the first query parameter.

TParam2

The type of the second query parameter.

TParam3

The type of the third query parameter.

TParam4

The type of the fourth query parameter.

TParam5

The type of the fifth query parameter.

TParam6

The type of the sixth query parameter.

TParam7

The type of the seventh query parameter.

TParam8

The type of the eighth query parameter.

TParam9

The type of the ninth query parameter.

TParam10

The type of the tenth query parameter.

TParam11

The type of the eleventh query parameter.

TParam12

The type of the twelfth query parameter.

TResult

The query result type.

CompileQuery<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TResult>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TResult>>)

Creates a compiled query delegate that when invoked will execute the specified LINQ query.

public static Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TResult> CompileQuery<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TResult>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TResult>> queryExpression) where TContext : DbContext

Parameters

queryExpression Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TResult>>

The LINQ query expression.

Returns

Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TResult>

A delegate that can be invoked to execute the compiled query.

Type Parameters

TContext

The target DbContext type.

TParam1

The type of the first query parameter.

TParam2

The type of the second query parameter.

TParam3

The type of the third query parameter.

TParam4

The type of the fourth query parameter.

TParam5

The type of the fifth query parameter.

TParam6

The type of the sixth query parameter.

TParam7

The type of the seventh query parameter.

TParam8

The type of the eighth query parameter.

TParam9

The type of the ninth query parameter.

TParam10

The type of the tenth query parameter.

TParam11

The type of the eleventh query parameter.

TParam12

The type of the twelfth query parameter.

TResult

The query result type.

CompileQuery<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TResult, TProperty>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, IIncludableQueryable<TResult, TProperty>>>)

Creates a compiled query delegate that when invoked will execute the specified LINQ query.

public static Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, IEnumerable<TResult>> CompileQuery<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TResult, TProperty>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, IIncludableQueryable<TResult, TProperty>>> queryExpression) where TContext : DbContext

Parameters

queryExpression Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, IIncludableQueryable<TResult, TProperty>>>

The LINQ query expression.

Returns

Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, IEnumerable<TResult>>

A delegate that can be invoked to execute the compiled query.

Type Parameters

TContext

The target DbContext type.

TParam1

The type of the first query parameter.

TParam2

The type of the second query parameter.

TParam3

The type of the third query parameter.

TParam4

The type of the fourth query parameter.

TParam5

The type of the fifth query parameter.

TParam6

The type of the sixth query parameter.

TParam7

The type of the seventh query parameter.

TParam8

The type of the eighth query parameter.

TParam9

The type of the ninth query parameter.

TParam10

The type of the tenth query parameter.

TParam11

The type of the eleventh query parameter.

TParam12

The type of the twelfth query parameter.

TResult

The query result type.

TProperty

The included property type.

CompileQuery<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TParam13, TResult>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TParam13, IQueryable<TResult>>>)

Creates a compiled query delegate that when invoked will execute the specified LINQ query.

public static Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TParam13, IEnumerable<TResult>> CompileQuery<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TParam13, TResult>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TParam13, IQueryable<TResult>>> queryExpression) where TContext : DbContext

Parameters

queryExpression Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TParam13, IQueryable<TResult>>>

The LINQ query expression.

Returns

Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TParam13, IEnumerable<TResult>>

A delegate that can be invoked to execute the compiled query.

Type Parameters

TContext

The target DbContext type.

TParam1

The type of the first query parameter.

TParam2

The type of the second query parameter.

TParam3

The type of the third query parameter.

TParam4

The type of the fourth query parameter.

TParam5

The type of the fifth query parameter.

TParam6

The type of the sixth query parameter.

TParam7

The type of the seventh query parameter.

TParam8

The type of the eighth query parameter.

TParam9

The type of the ninth query parameter.

TParam10

The type of the tenth query parameter.

TParam11

The type of the eleventh query parameter.

TParam12

The type of the twelfth query parameter.

TParam13

The type of the thirteenth query parameter.

TResult

The query result type.

CompileQuery<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TParam13, TResult>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TParam13, TResult>>)

Creates a compiled query delegate that when invoked will execute the specified LINQ query.

public static Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TParam13, TResult> CompileQuery<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TParam13, TResult>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TParam13, TResult>> queryExpression) where TContext : DbContext

Parameters

queryExpression Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TParam13, TResult>>

The LINQ query expression.

Returns

Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TParam13, TResult>

A delegate that can be invoked to execute the compiled query.

Type Parameters

TContext

The target DbContext type.

TParam1

The type of the first query parameter.

TParam2

The type of the second query parameter.

TParam3

The type of the third query parameter.

TParam4

The type of the fourth query parameter.

TParam5

The type of the fifth query parameter.

TParam6

The type of the sixth query parameter.

TParam7

The type of the seventh query parameter.

TParam8

The type of the eighth query parameter.

TParam9

The type of the ninth query parameter.

TParam10

The type of the tenth query parameter.

TParam11

The type of the eleventh query parameter.

TParam12

The type of the twelfth query parameter.

TParam13

The type of the thirteenth query parameter.

TResult

The query result type.

CompileQuery<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TParam13, TResult, TProperty>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TParam13, IIncludableQueryable<TResult, TProperty>>>)

Creates a compiled query delegate that when invoked will execute the specified LINQ query.

public static Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TParam13, IEnumerable<TResult>> CompileQuery<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TParam13, TResult, TProperty>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TParam13, IIncludableQueryable<TResult, TProperty>>> queryExpression) where TContext : DbContext

Parameters

queryExpression Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TParam13, IIncludableQueryable<TResult, TProperty>>>

The LINQ query expression.

Returns

Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TParam13, IEnumerable<TResult>>

A delegate that can be invoked to execute the compiled query.

Type Parameters

TContext

The target DbContext type.

TParam1

The type of the first query parameter.

TParam2

The type of the second query parameter.

TParam3

The type of the third query parameter.

TParam4

The type of the fourth query parameter.

TParam5

The type of the fifth query parameter.

TParam6

The type of the sixth query parameter.

TParam7

The type of the seventh query parameter.

TParam8

The type of the eighth query parameter.

TParam9

The type of the ninth query parameter.

TParam10

The type of the tenth query parameter.

TParam11

The type of the eleventh query parameter.

TParam12

The type of the twelfth query parameter.

TParam13

The type of the thirteenth query parameter.

TResult

The query result type.

TProperty

The included property type.

CompileQuery<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TParam13, TParam14, TResult>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TParam13, TParam14, IQueryable<TResult>>>)

Creates a compiled query delegate that when invoked will execute the specified LINQ query.

public static Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TParam13, TParam14, IEnumerable<TResult>> CompileQuery<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TParam13, TParam14, TResult>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TParam13, TParam14, IQueryable<TResult>>> queryExpression) where TContext : DbContext

Parameters

queryExpression Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TParam13, TParam14, IQueryable<TResult>>>

The LINQ query expression.

Returns

Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TParam13, TParam14, IEnumerable<TResult>>

A delegate that can be invoked to execute the compiled query.

Type Parameters

TContext

The target DbContext type.

TParam1

The type of the first query parameter.

TParam2

The type of the second query parameter.

TParam3

The type of the third query parameter.

TParam4

The type of the fourth query parameter.

TParam5

The type of the fifth query parameter.

TParam6

The type of the sixth query parameter.

TParam7

The type of the seventh query parameter.

TParam8

The type of the eighth query parameter.

TParam9

The type of the ninth query parameter.

TParam10

The type of the tenth query parameter.

TParam11

The type of the eleventh query parameter.

TParam12

The type of the twelfth query parameter.

TParam13

The type of the thirteenth query parameter.

TParam14

The type of the fourteenth query parameter.

TResult

The query result type.

CompileQuery<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TParam13, TParam14, TResult>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TParam13, TParam14, TResult>>)

Creates a compiled query delegate that when invoked will execute the specified LINQ query.

public static Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TParam13, TParam14, TResult> CompileQuery<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TParam13, TParam14, TResult>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TParam13, TParam14, TResult>> queryExpression) where TContext : DbContext

Parameters

queryExpression Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TParam13, TParam14, TResult>>

The LINQ query expression.

Returns

Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TParam13, TParam14, TResult>

A delegate that can be invoked to execute the compiled query.

Type Parameters

TContext

The target DbContext type.

TParam1

The type of the first query parameter.

TParam2

The type of the second query parameter.

TParam3

The type of the third query parameter.

TParam4

The type of the fourth query parameter.

TParam5

The type of the fifth query parameter.

TParam6

The type of the sixth query parameter.

TParam7

The type of the seventh query parameter.

TParam8

The type of the eighth query parameter.

TParam9

The type of the ninth query parameter.

TParam10

The type of the tenth query parameter.

TParam11

The type of the eleventh query parameter.

TParam12

The type of the twelfth query parameter.

TParam13

The type of the thirteenth query parameter.

TParam14

The type of the fourteenth query parameter.

TResult

The query result type.

CompileQuery<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TParam13, TParam14, TResult, TProperty>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TParam13, TParam14, IIncludableQueryable<TResult, TProperty>>>)

Creates a compiled query delegate that when invoked will execute the specified LINQ query.

public static Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TParam13, TParam14, IEnumerable<TResult>> CompileQuery<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TParam13, TParam14, TResult, TProperty>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TParam13, TParam14, IIncludableQueryable<TResult, TProperty>>> queryExpression) where TContext : DbContext

Parameters

queryExpression Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TParam13, TParam14, IIncludableQueryable<TResult, TProperty>>>

The LINQ query expression.

Returns

Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TParam13, TParam14, IEnumerable<TResult>>

A delegate that can be invoked to execute the compiled query.

Type Parameters

TContext

The target DbContext type.

TParam1

The type of the first query parameter.

TParam2

The type of the second query parameter.

TParam3

The type of the third query parameter.

TParam4

The type of the fourth query parameter.

TParam5

The type of the fifth query parameter.

TParam6

The type of the sixth query parameter.

TParam7

The type of the seventh query parameter.

TParam8

The type of the eighth query parameter.

TParam9

The type of the ninth query parameter.

TParam10

The type of the tenth query parameter.

TParam11

The type of the eleventh query parameter.

TParam12

The type of the twelfth query parameter.

TParam13

The type of the thirteenth query parameter.

TParam14

The type of the fourteenth query parameter.

TResult

The query result type.

TProperty

The included property type.

CompileQuery<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TParam13, TParam14, TParam15, TResult>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TParam13, TParam14, TParam15, IQueryable<TResult>>>)

Creates a compiled query delegate that when invoked will execute the specified LINQ query.

public static Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TParam13, TParam14, TParam15, IEnumerable<TResult>> CompileQuery<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TParam13, TParam14, TParam15, TResult>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TParam13, TParam14, TParam15, IQueryable<TResult>>> queryExpression) where TContext : DbContext

Parameters

queryExpression Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TParam13, TParam14, TParam15, IQueryable<TResult>>>

The LINQ query expression.

Returns

Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TParam13, TParam14, TParam15, IEnumerable<TResult>>

A delegate that can be invoked to execute the compiled query.

Type Parameters

TContext

The target DbContext type.

TParam1

The type of the first query parameter.

TParam2

The type of the second query parameter.

TParam3

The type of the third query parameter.

TParam4

The type of the fourth query parameter.

TParam5

The type of the fifth query parameter.

TParam6

The type of the sixth query parameter.

TParam7

The type of the seventh query parameter.

TParam8

The type of the eighth query parameter.

TParam9

The type of the ninth query parameter.

TParam10

The type of the tenth query parameter.

TParam11

The type of the eleventh query parameter.

TParam12

The type of the twelfth query parameter.

TParam13

The type of the thirteenth query parameter.

TParam14

The type of the fourteenth query parameter.

TParam15

The type of the fifteenth query parameter.

TResult

The query result type.

CompileQuery<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TParam13, TParam14, TParam15, TResult>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TParam13, TParam14, TParam15, TResult>>)

Creates a compiled query delegate that when invoked will execute the specified LINQ query.

public static Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TParam13, TParam14, TParam15, TResult> CompileQuery<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TParam13, TParam14, TParam15, TResult>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TParam13, TParam14, TParam15, TResult>> queryExpression) where TContext : DbContext

Parameters

queryExpression Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TParam13, TParam14, TParam15, TResult>>

The LINQ query expression.

Returns

Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TParam13, TParam14, TParam15, TResult>

A delegate that can be invoked to execute the compiled query.

Type Parameters

TContext

The target DbContext type.

TParam1

The type of the first query parameter.

TParam2

The type of the second query parameter.

TParam3

The type of the third query parameter.

TParam4

The type of the fourth query parameter.

TParam5

The type of the fifth query parameter.

TParam6

The type of the sixth query parameter.

TParam7

The type of the seventh query parameter.

TParam8

The type of the eighth query parameter.

TParam9

The type of the ninth query parameter.

TParam10

The type of the tenth query parameter.

TParam11

The type of the eleventh query parameter.

TParam12

The type of the twelfth query parameter.

TParam13

The type of the thirteenth query parameter.

TParam14

The type of the fourteenth query parameter.

TParam15

The type of the fifteenth query parameter.

TResult

The query result type.

CompileQuery<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TParam13, TParam14, TParam15, TResult, TProperty>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TParam13, TParam14, TParam15, IIncludableQueryable<TResult, TProperty>>>)

Creates a compiled query delegate that when invoked will execute the specified LINQ query.

public static Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TParam13, TParam14, TParam15, IEnumerable<TResult>> CompileQuery<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TParam13, TParam14, TParam15, TResult, TProperty>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TParam13, TParam14, TParam15, IIncludableQueryable<TResult, TProperty>>> queryExpression) where TContext : DbContext

Parameters

queryExpression Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TParam13, TParam14, TParam15, IIncludableQueryable<TResult, TProperty>>>

The LINQ query expression.

Returns

Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TParam13, TParam14, TParam15, IEnumerable<TResult>>

A delegate that can be invoked to execute the compiled query.

Type Parameters

TContext

The target DbContext type.

TParam1

The type of the first query parameter.

TParam2

The type of the second query parameter.

TParam3

The type of the third query parameter.

TParam4

The type of the fourth query parameter.

TParam5

The type of the fifth query parameter.

TParam6

The type of the sixth query parameter.

TParam7

The type of the seventh query parameter.

TParam8

The type of the eighth query parameter.

TParam9

The type of the ninth query parameter.

TParam10

The type of the tenth query parameter.

TParam11

The type of the eleventh query parameter.

TParam12

The type of the twelfth query parameter.

TParam13

The type of the thirteenth query parameter.

TParam14

The type of the fourteenth query parameter.

TParam15

The type of the fifteenth query parameter.

TResult

The query result type.

TProperty

The included property type.

CompileQuery<TContext, TResult>(Expression<Func<TContext, DbSet<TResult>>>)

Creates a compiled query delegate that when invoked will execute the specified LINQ query.

public static Func<TContext, IEnumerable<TResult>> CompileQuery<TContext, TResult>(Expression<Func<TContext, DbSet<TResult>>> queryExpression) where TContext : DbContext where TResult : class

Parameters

queryExpression Expression<Func<TContext, DbSet<TResult>>>

The LINQ query expression.

Returns

Func<TContext, IEnumerable<TResult>>

A delegate that can be invoked to execute the compiled query.

Type Parameters

TContext

The target DbContext type.

TResult

The query result type.

CompileQuery<TContext, TResult>(Expression<Func<TContext, IQueryable<TResult>>>)

Creates a compiled query delegate that when invoked will execute the specified LINQ query.

public static Func<TContext, IEnumerable<TResult>> CompileQuery<TContext, TResult>(Expression<Func<TContext, IQueryable<TResult>>> queryExpression) where TContext : DbContext

Parameters

queryExpression Expression<Func<TContext, IQueryable<TResult>>>

The LINQ query expression.

Returns

Func<TContext, IEnumerable<TResult>>

A delegate that can be invoked to execute the compiled query.

Type Parameters

TContext

The target DbContext type.

TResult

The query result type.

CompileQuery<TContext, TResult>(Expression<Func<TContext, TResult>>)

Creates a compiled query delegate that when invoked will execute the specified LINQ query.

public static Func<TContext, TResult> CompileQuery<TContext, TResult>(Expression<Func<TContext, TResult>> queryExpression) where TContext : DbContext

Parameters

queryExpression Expression<Func<TContext, TResult>>

The LINQ query expression.

Returns

Func<TContext, TResult>

A delegate that can be invoked to execute the compiled query.

Type Parameters

TContext

The target DbContext type.

TResult

The query result type.

CompileQuery<TContext, TResult, TProperty>(Expression<Func<TContext, IIncludableQueryable<TResult, TProperty>>>)

Creates a compiled query delegate that when invoked will execute the specified LINQ query.

public static Func<TContext, IEnumerable<TResult>> CompileQuery<TContext, TResult, TProperty>(Expression<Func<TContext, IIncludableQueryable<TResult, TProperty>>> queryExpression) where TContext : DbContext

Parameters

queryExpression Expression<Func<TContext, IIncludableQueryable<TResult, TProperty>>>

The LINQ query expression.

Returns

Func<TContext, IEnumerable<TResult>>

A delegate that can be invoked to execute the compiled query.

Type Parameters

TContext

The target DbContext type.

TResult

The query result type.

TProperty

The included property type.

CompileQuery<TContext, TParam1, TResult>(Expression<Func<TContext, TParam1, IQueryable<TResult>>>)

Creates a compiled query delegate that when invoked will execute the specified LINQ query.

public static Func<TContext, TParam1, IEnumerable<TResult>> CompileQuery<TContext, TParam1, TResult>(Expression<Func<TContext, TParam1, IQueryable<TResult>>> queryExpression) where TContext : DbContext

Parameters

queryExpression Expression<Func<TContext, TParam1, IQueryable<TResult>>>

The LINQ query expression.

Returns

Func<TContext, TParam1, IEnumerable<TResult>>

A delegate that can be invoked to execute the compiled query.

Type Parameters

TContext

The target DbContext type.

TParam1

The type of the first query parameter.

TResult

The query result type.

CompileQuery<TContext, TParam1, TResult>(Expression<Func<TContext, TParam1, TResult>>)

Creates a compiled query delegate that when invoked will execute the specified LINQ query.

public static Func<TContext, TParam1, TResult> CompileQuery<TContext, TParam1, TResult>(Expression<Func<TContext, TParam1, TResult>> queryExpression) where TContext : DbContext

Parameters

queryExpression Expression<Func<TContext, TParam1, TResult>>

The LINQ query expression.

Returns

Func<TContext, TParam1, TResult>

A delegate that can be invoked to execute the compiled query.

Type Parameters

TContext

The target DbContext type.

TParam1

The type of the first query parameter.

TResult

The query result type.

CompileQuery<TContext, TParam1, TResult, TProperty>(Expression<Func<TContext, TParam1, IIncludableQueryable<TResult, TProperty>>>)

Creates a compiled query delegate that when invoked will execute the specified LINQ query.

public static Func<TContext, TParam1, IEnumerable<TResult>> CompileQuery<TContext, TParam1, TResult, TProperty>(Expression<Func<TContext, TParam1, IIncludableQueryable<TResult, TProperty>>> queryExpression) where TContext : DbContext

Parameters

queryExpression Expression<Func<TContext, TParam1, IIncludableQueryable<TResult, TProperty>>>

The LINQ query expression.

Returns

Func<TContext, TParam1, IEnumerable<TResult>>

A delegate that can be invoked to execute the compiled query.

Type Parameters

TContext

The target DbContext type.

TParam1

The type of the first query parameter.

TResult

The query result type.

TProperty

The included property type.

CompileQuery<TContext, TParam1, TParam2, TResult>(Expression<Func<TContext, TParam1, TParam2, IQueryable<TResult>>>)

Creates a compiled query delegate that when invoked will execute the specified LINQ query.

public static Func<TContext, TParam1, TParam2, IEnumerable<TResult>> CompileQuery<TContext, TParam1, TParam2, TResult>(Expression<Func<TContext, TParam1, TParam2, IQueryable<TResult>>> queryExpression) where TContext : DbContext

Parameters

queryExpression Expression<Func<TContext, TParam1, TParam2, IQueryable<TResult>>>

The LINQ query expression.

Returns

Func<TContext, TParam1, TParam2, IEnumerable<TResult>>

A delegate that can be invoked to execute the compiled query.

Type Parameters

TContext

The target DbContext type.

TParam1

The type of the first query parameter.

TParam2

The type of the second query parameter.

TResult

The query result type.

CompileQuery<TContext, TParam1, TParam2, TResult>(Expression<Func<TContext, TParam1, TParam2, TResult>>)

Creates a compiled query delegate that when invoked will execute the specified LINQ query.

public static Func<TContext, TParam1, TParam2, TResult> CompileQuery<TContext, TParam1, TParam2, TResult>(Expression<Func<TContext, TParam1, TParam2, TResult>> queryExpression) where TContext : DbContext

Parameters

queryExpression Expression<Func<TContext, TParam1, TParam2, TResult>>

The LINQ query expression.

Returns

Func<TContext, TParam1, TParam2, TResult>

A delegate that can be invoked to execute the compiled query.

Type Parameters

TContext

The target DbContext type.

TParam1

The type of the first query parameter.

TParam2

The type of the second query parameter.

TResult

The query result type.

CompileQuery<TContext, TParam1, TParam2, TResult, TProperty>(Expression<Func<TContext, TParam1, TParam2, IIncludableQueryable<TResult, TProperty>>>)

Creates a compiled query delegate that when invoked will execute the specified LINQ query.

public static Func<TContext, TParam1, TParam2, IEnumerable<TResult>> CompileQuery<TContext, TParam1, TParam2, TResult, TProperty>(Expression<Func<TContext, TParam1, TParam2, IIncludableQueryable<TResult, TProperty>>> queryExpression) where TContext : DbContext

Parameters

queryExpression Expression<Func<TContext, TParam1, TParam2, IIncludableQueryable<TResult, TProperty>>>

The LINQ query expression.

Returns

Func<TContext, TParam1, TParam2, IEnumerable<TResult>>

A delegate that can be invoked to execute the compiled query.

Type Parameters

TContext

The target DbContext type.

TParam1

The type of the first query parameter.

TParam2

The type of the second query parameter.

TResult

The query result type.

TProperty

The included property type.

CompileQuery<TContext, TParam1, TParam2, TParam3, TResult>(Expression<Func<TContext, TParam1, TParam2, TParam3, IQueryable<TResult>>>)

Creates a compiled query delegate that when invoked will execute the specified LINQ query.

public static Func<TContext, TParam1, TParam2, TParam3, IEnumerable<TResult>> CompileQuery<TContext, TParam1, TParam2, TParam3, TResult>(Expression<Func<TContext, TParam1, TParam2, TParam3, IQueryable<TResult>>> queryExpression) where TContext : DbContext

Parameters

queryExpression Expression<Func<TContext, TParam1, TParam2, TParam3, IQueryable<TResult>>>

The LINQ query expression.

Returns

Func<TContext, TParam1, TParam2, TParam3, IEnumerable<TResult>>

A delegate that can be invoked to execute the compiled query.

Type Parameters

TContext

The target DbContext type.

TParam1

The type of the first query parameter.

TParam2

The type of the second query parameter.

TParam3

The type of the third query parameter.

TResult

The query result type.

CompileQuery<TContext, TParam1, TParam2, TParam3, TResult>(Expression<Func<TContext, TParam1, TParam2, TParam3, TResult>>)

Creates a compiled query delegate that when invoked will execute the specified LINQ query.

public static Func<TContext, TParam1, TParam2, TParam3, TResult> CompileQuery<TContext, TParam1, TParam2, TParam3, TResult>(Expression<Func<TContext, TParam1, TParam2, TParam3, TResult>> queryExpression) where TContext : DbContext

Parameters

queryExpression Expression<Func<TContext, TParam1, TParam2, TParam3, TResult>>

The LINQ query expression.

Returns

Func<TContext, TParam1, TParam2, TParam3, TResult>

A delegate that can be invoked to execute the compiled query.

Type Parameters

TContext

The target DbContext type.

TParam1

The type of the first query parameter.

TParam2

The type of the second query parameter.

TParam3

The type of the third query parameter.

TResult

The query result type.

CompileQuery<TContext, TParam1, TParam2, TParam3, TResult, TProperty>(Expression<Func<TContext, TParam1, TParam2, TParam3, IIncludableQueryable<TResult, TProperty>>>)

Creates a compiled query delegate that when invoked will execute the specified LINQ query.

public static Func<TContext, TParam1, TParam2, TParam3, IEnumerable<TResult>> CompileQuery<TContext, TParam1, TParam2, TParam3, TResult, TProperty>(Expression<Func<TContext, TParam1, TParam2, TParam3, IIncludableQueryable<TResult, TProperty>>> queryExpression) where TContext : DbContext

Parameters

queryExpression Expression<Func<TContext, TParam1, TParam2, TParam3, IIncludableQueryable<TResult, TProperty>>>

The LINQ query expression.

Returns

Func<TContext, TParam1, TParam2, TParam3, IEnumerable<TResult>>

A delegate that can be invoked to execute the compiled query.

Type Parameters

TContext

The target DbContext type.

TParam1

The type of the first query parameter.

TParam2

The type of the second query parameter.

TParam3

The type of the third query parameter.

TResult

The query result type.

TProperty

The included property type.

CompileQuery<TContext, TParam1, TParam2, TParam3, TParam4, TResult>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, IQueryable<TResult>>>)

Creates a compiled query delegate that when invoked will execute the specified LINQ query.

public static Func<TContext, TParam1, TParam2, TParam3, TParam4, IEnumerable<TResult>> CompileQuery<TContext, TParam1, TParam2, TParam3, TParam4, TResult>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, IQueryable<TResult>>> queryExpression) where TContext : DbContext

Parameters

queryExpression Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, IQueryable<TResult>>>

The LINQ query expression.

Returns

Func<TContext, TParam1, TParam2, TParam3, TParam4, IEnumerable<TResult>>

A delegate that can be invoked to execute the compiled query.

Type Parameters

TContext

The target DbContext type.

TParam1

The type of the first query parameter.

TParam2

The type of the second query parameter.

TParam3

The type of the third query parameter.

TParam4

The type of the fourth query parameter.

TResult

The query result type.

CompileQuery<TContext, TParam1, TParam2, TParam3, TParam4, TResult>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TResult>>)

Creates a compiled query delegate that when invoked will execute the specified LINQ query.

public static Func<TContext, TParam1, TParam2, TParam3, TParam4, TResult> CompileQuery<TContext, TParam1, TParam2, TParam3, TParam4, TResult>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TResult>> queryExpression) where TContext : DbContext

Parameters

queryExpression Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TResult>>

The LINQ query expression.

Returns

Func<TContext, TParam1, TParam2, TParam3, TParam4, TResult>

A delegate that can be invoked to execute the compiled query.

Type Parameters

TContext

The target DbContext type.

TParam1

The type of the first query parameter.

TParam2

The type of the second query parameter.

TParam3

The type of the third query parameter.

TParam4

The type of the fourth query parameter.

TResult

The query result type.

CompileQuery<TContext, TParam1, TParam2, TParam3, TParam4, TResult, TProperty>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, IIncludableQueryable<TResult, TProperty>>>)

Creates a compiled query delegate that when invoked will execute the specified LINQ query.

public static Func<TContext, TParam1, TParam2, TParam3, TParam4, IEnumerable<TResult>> CompileQuery<TContext, TParam1, TParam2, TParam3, TParam4, TResult, TProperty>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, IIncludableQueryable<TResult, TProperty>>> queryExpression) where TContext : DbContext

Parameters

queryExpression Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, IIncludableQueryable<TResult, TProperty>>>

The LINQ query expression.

Returns

Func<TContext, TParam1, TParam2, TParam3, TParam4, IEnumerable<TResult>>

A delegate that can be invoked to execute the compiled query.

Type Parameters

TContext

The target DbContext type.

TParam1

The type of the first query parameter.

TParam2

The type of the second query parameter.

TParam3

The type of the third query parameter.

TParam4

The type of the fourth query parameter.

TResult

The query result type.

TProperty

The included property type.

CompileQuery<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TResult>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, IQueryable<TResult>>>)

Creates a compiled query delegate that when invoked will execute the specified LINQ query.

public static Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, IEnumerable<TResult>> CompileQuery<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TResult>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, IQueryable<TResult>>> queryExpression) where TContext : DbContext

Parameters

queryExpression Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, IQueryable<TResult>>>

The LINQ query expression.

Returns

Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, IEnumerable<TResult>>

A delegate that can be invoked to execute the compiled query.

Type Parameters

TContext

The target DbContext type.

TParam1

The type of the first query parameter.

TParam2

The type of the second query parameter.

TParam3

The type of the third query parameter.

TParam4

The type of the fourth query parameter.

TParam5

The type of the fifth query parameter.

TResult

The query result type.

CompileQuery<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TResult>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TResult>>)

Creates a compiled query delegate that when invoked will execute the specified LINQ query.

public static Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TResult> CompileQuery<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TResult>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TResult>> queryExpression) where TContext : DbContext

Parameters

queryExpression Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TResult>>

The LINQ query expression.

Returns

Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TResult>

A delegate that can be invoked to execute the compiled query.

Type Parameters

TContext

The target DbContext type.

TParam1

The type of the first query parameter.

TParam2

The type of the second query parameter.

TParam3

The type of the third query parameter.

TParam4

The type of the fourth query parameter.

TParam5

The type of the fifth query parameter.

TResult

The query result type.

CompileQuery<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TResult, TProperty>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, IIncludableQueryable<TResult, TProperty>>>)

Creates a compiled query delegate that when invoked will execute the specified LINQ query.

public static Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, IEnumerable<TResult>> CompileQuery<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TResult, TProperty>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, IIncludableQueryable<TResult, TProperty>>> queryExpression) where TContext : DbContext

Parameters

queryExpression Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, IIncludableQueryable<TResult, TProperty>>>

The LINQ query expression.

Returns

Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, IEnumerable<TResult>>

A delegate that can be invoked to execute the compiled query.

Type Parameters

TContext

The target DbContext type.

TParam1

The type of the first query parameter.

TParam2

The type of the second query parameter.

TParam3

The type of the third query parameter.

TParam4

The type of the fourth query parameter.

TParam5

The type of the fifth query parameter.

TResult

The query result type.

TProperty

The included property type.

CompileQuery<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TResult>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, IQueryable<TResult>>>)

Creates a compiled query delegate that when invoked will execute the specified LINQ query.

public static Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, IEnumerable<TResult>> CompileQuery<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TResult>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, IQueryable<TResult>>> queryExpression) where TContext : DbContext

Parameters

queryExpression Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, IQueryable<TResult>>>

The LINQ query expression.

Returns

Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, IEnumerable<TResult>>

A delegate that can be invoked to execute the compiled query.

Type Parameters

TContext

The target DbContext type.

TParam1

The type of the first query parameter.

TParam2

The type of the second query parameter.

TParam3

The type of the third query parameter.

TParam4

The type of the fourth query parameter.

TParam5

The type of the fifth query parameter.

TParam6

The type of the sixth query parameter.

TResult

The query result type.

CompileQuery<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TResult>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TResult>>)

Creates a compiled query delegate that when invoked will execute the specified LINQ query.

public static Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TResult> CompileQuery<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TResult>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TResult>> queryExpression) where TContext : DbContext

Parameters

queryExpression Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TResult>>

The LINQ query expression.

Returns

Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TResult>

A delegate that can be invoked to execute the compiled query.

Type Parameters

TContext

The target DbContext type.

TParam1

The type of the first query parameter.

TParam2

The type of the second query parameter.

TParam3

The type of the third query parameter.

TParam4

The type of the fourth query parameter.

TParam5

The type of the fifth query parameter.

TParam6

The type of the sixth query parameter.

TResult

The query result type.

CompileQuery<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TResult, TProperty>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, IIncludableQueryable<TResult, TProperty>>>)

Creates a compiled query delegate that when invoked will execute the specified LINQ query.

public static Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, IEnumerable<TResult>> CompileQuery<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TResult, TProperty>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, IIncludableQueryable<TResult, TProperty>>> queryExpression) where TContext : DbContext

Parameters

queryExpression Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, IIncludableQueryable<TResult, TProperty>>>

The LINQ query expression.

Returns

Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, IEnumerable<TResult>>

A delegate that can be invoked to execute the compiled query.

Type Parameters

TContext

The target DbContext type.

TParam1

The type of the first query parameter.

TParam2

The type of the second query parameter.

TParam3

The type of the third query parameter.

TParam4

The type of the fourth query parameter.

TParam5

The type of the fifth query parameter.

TParam6

The type of the sixth query parameter.

TResult

The query result type.

TProperty

The included property type.

CompileQuery<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TResult>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, IQueryable<TResult>>>)

Creates a compiled query delegate that when invoked will execute the specified LINQ query.

public static Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, IEnumerable<TResult>> CompileQuery<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TResult>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, IQueryable<TResult>>> queryExpression) where TContext : DbContext

Parameters

queryExpression Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, IQueryable<TResult>>>

The LINQ query expression.

Returns

Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, IEnumerable<TResult>>

A delegate that can be invoked to execute the compiled query.

Type Parameters

TContext

The target DbContext type.

TParam1

The type of the first query parameter.

TParam2

The type of the second query parameter.

TParam3

The type of the third query parameter.

TParam4

The type of the fourth query parameter.

TParam5

The type of the fifth query parameter.

TParam6

The type of the sixth query parameter.

TParam7

The type of the seventh query parameter.

TResult

The query result type.

CompileQuery<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TResult>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TResult>>)

Creates a compiled query delegate that when invoked will execute the specified LINQ query.

public static Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TResult> CompileQuery<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TResult>(Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TResult>> queryExpression) where TContext : DbContext

Parameters

queryExpression Expression<Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TResult>>

The LINQ query expression.

Returns

Func<TContext, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TResult>

A delegate that can be invoked to execute the compiled query.

Type Parameters

TContext

The target DbContext type.

TParam1

The type of the first query parameter.

TParam2

The type of the second query parameter.

TParam3

The type of the third query parameter.

TParam4

The type of the fourth query parameter.

TParam5

The type of the fifth query parameter.

TParam6

The type of the sixth query parameter.

TParam7

The type of the seventh query parameter.

TResult

The query result type.

Constant<T>(T)

Within the context of an EF LINQ query, forces its argument to be inserted into the query as a constant expression. This can be used to e.g. integrate a value as a constant inside an EF query, instead of as a parameter, for query performance reasons.

public static T Constant<T>(T argument)

Parameters

argument T

The expression to be integrated as a constant into the query.

Returns

T

The same value for further use in the query.

Type Parameters

T

The type of the expression to be integrated as a constant into the query.

Remarks

Note that this is a static method accessed through the top-level EF static type.

Property<TProperty>(object, string)

References a given property or navigation on an entity or complex type instance. This is useful for shadow state properties, for which no CLR property exists. Currently this method can only be used in LINQ queries and can not be used to access the value assigned to a property in other scenarios.

public static TProperty Property<TProperty>(object instance, string propertyName)

Parameters

instance object

The entity or complex type to access the property on.

propertyName string

The name of the property.

Returns

TProperty

The value assigned to the property.

Type Parameters

TProperty

The type of the property being referenced.

Remarks

Note that this is a static method accessed through the top-level EF static type.

See Using EF.Property in EF Core queries for more information and examples.