Aracılığıyla paylaş


Database.CompileQuery Yöntem

Tanım

Aşırı Yüklemeler

CompileQuery<TResult>(QueryModel)

Sorgu modelini, veritabanından sorgu sonuçlarını almak için yürütülebilen bir işleve çevirir.

CompileQuery<TResult>(Expression, Boolean)

Bir oluşturmak için verilen sorguyu derler Func<T,TResult>.

CompileQuery<TResult>(QueryModel)

Sorgu modelini, veritabanından sorgu sonuçlarını almak için yürütülebilen bir işleve çevirir.

public virtual 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>>
override this.CompileQuery : Remotion.Linq.QueryModel -> Func<Microsoft.EntityFrameworkCore.Query.QueryContext, seq<'Result>>
Public Overridable Function CompileQuery(Of TResult) (queryModel As QueryModel) As Func(Of QueryContext, IEnumerable(Of TResult))

Tür Parametreleri

TResult

Sorgu tarafından döndürülen sonuçların türü.

Parametreler

queryModel
Remotion.Linq.QueryModel

Yürütülecek sorguyu temsil eden nesne modeli.

Döndürülenler

Sorguyu yürütecek bir işlev.

Uygulamalar

Şunlara uygulanır

CompileQuery<TResult>(Expression, Boolean)

Bir oluşturmak için verilen sorguyu derler Func<T,TResult>.

public virtual 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>
override this.CompileQuery : System.Linq.Expressions.Expression * bool -> Func<Microsoft.EntityFrameworkCore.Query.QueryContext, 'Result>
Public Overridable Function CompileQuery(Of TResult) (query As Expression, async As Boolean) As Func(Of QueryContext, TResult)

Tür Parametreleri

TResult

Sorgu sonucunun türü.

Parametreler

query
Expression

Derlenecek sorgu.

async
Boolean

Bunun zaman uyumsuz bir sorgu olup olmadığını gösteren değer.

Döndürülenler

Func<QueryContext,TResult>

Sorgunun Func<T,TResult> sonuçlarını almak için çağrılabilen bir.

Uygulamalar

Şunlara uygulanır