IDatabase.CompileQuery 메서드

정의

오버로드

CompileQuery<TResult>(QueryModel)

쿼리 모델을 데이터베이스에서 쿼리 결과를 가져오기 위해 실행할 수 있는 함수로 변환합니다.

CompileQuery<TResult>(Expression, Boolean)

지정된 쿼리를 컴파일하여 를 생성합니다 Func<T,TResult>.

CompileQuery<TResult>(QueryModel)

쿼리 모델을 데이터베이스에서 쿼리 결과를 가져오기 위해 실행할 수 있는 함수로 변환합니다.

public Func<Microsoft.EntityFrameworkCore.Query.QueryContext,System.Collections.Generic.IEnumerable<TResult>> CompileQuery<TResult> (Remotion.Linq.QueryModel queryModel);
abstract member CompileQuery : Remotion.Linq.QueryModel -> Func<Microsoft.EntityFrameworkCore.Query.QueryContext, seq<'Result>>
Public Function CompileQuery(Of TResult) (queryModel As QueryModel) As Func(Of QueryContext, IEnumerable(Of TResult))

형식 매개 변수

TResult

쿼리에서 반환된 결과의 형식입니다.

매개 변수

queryModel
Remotion.Linq.QueryModel

실행할 쿼리를 나타내는 개체 모델입니다.

반환

쿼리를 실행할 함수입니다.

적용 대상

CompileQuery<TResult>(Expression, Boolean)

지정된 쿼리를 컴파일하여 를 생성합니다 Func<T,TResult>.

public Func<Microsoft.EntityFrameworkCore.Query.QueryContext,TResult> CompileQuery<TResult> (System.Linq.Expressions.Expression query, bool async);
abstract member CompileQuery : System.Linq.Expressions.Expression * bool -> Func<Microsoft.EntityFrameworkCore.Query.QueryContext, 'Result>
Public Function CompileQuery(Of TResult) (query As Expression, async As Boolean) As Func(Of QueryContext, TResult)

형식 매개 변수

TResult

쿼리 결과의 형식입니다.

매개 변수

query
Expression

컴파일할 쿼리입니다.

async
Boolean

비동기 쿼리인지 여부를 나타내는 값입니다.

반환

Func<QueryContext,TResult>

Func<T,TResult> 쿼리 결과를 가져오기 위해 호출할 수 있는 입니다.

적용 대상