Database.CompileQueryExpression<TResult> Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Compiles the given query to generate an expression tree which can be used to execute the query.
[System.Diagnostics.CodeAnalysis.Experimental("EF9100")]
public virtual System.Linq.Expressions.Expression<Func<Microsoft.EntityFrameworkCore.Query.QueryContext,TResult>> CompileQueryExpression<TResult> (System.Linq.Expressions.Expression query, bool async, System.Collections.Generic.IReadOnlySet<string> nonNullableReferenceTypeParameters);
[<System.Diagnostics.CodeAnalysis.Experimental("EF9100")>]
abstract member CompileQueryExpression : System.Linq.Expressions.Expression * bool * System.Collections.Generic.IReadOnlySet<string> -> System.Linq.Expressions.Expression<Func<Microsoft.EntityFrameworkCore.Query.QueryContext, 'Result>>
override this.CompileQueryExpression : System.Linq.Expressions.Expression * bool * System.Collections.Generic.IReadOnlySet<string> -> System.Linq.Expressions.Expression<Func<Microsoft.EntityFrameworkCore.Query.QueryContext, 'Result>>
Public Overridable Function CompileQueryExpression(Of TResult) (query As Expression, async As Boolean, nonNullableReferenceTypeParameters As IReadOnlySet(Of String)) As Expression(Of Func(Of QueryContext, TResult))
Type Parameters
- TResult
The type of query result.
Parameters
- query
- Expression
The query to compile.
- async
- Boolean
A value indicating whether this is an async query.
- nonNullableReferenceTypeParameters
- IReadOnlySet<String>
Names of parameters which have non-nullable reference types..
Returns
An expression tree which can be used to execute the query.
Implements
- Attributes
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Entity Framework