IDatabase.CompileQueryExpression<TResult> Method

Definition

Compiles the given query to generate an expression tree which can be used to execute the query.

C#
[System.Diagnostics.CodeAnalysis.Experimental("EF9100")]
public 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);

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.

Attributes

Applies to

Product Versions
Entity Framework Core 9.0