語言

ObjectQuery<T> 類別

定義

ObjectQuery 在物件層實作強型別查詢。 查詢以 Entity-SQL 字串來指定,並可透過呼叫 ObjectQuery 宣告的基於 Entity-SQL 的查詢建置方法來建立。

[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1710:IdentifiersShouldHaveCorrectSuffix")]
public class ObjectQuery<T> : System.Data.Entity.Core.Objects.ObjectQuery, System.Collections.Generic.IEnumerable<T>, System.Data.Entity.Infrastructure.IDbAsyncEnumerable<T>, System.Linq.IOrderedQueryable<T>, System.Linq.IQueryable<T>
type ObjectQuery<'T> = class
    inherit ObjectQuery
    interface IOrderedQueryable<'T>
    interface IQueryable<'T>
    interface IOrderedQueryable
    interface IQueryable
    interface seq<'T>
    interface IEnumerable
    interface IDbAsyncEnumerable<'T>
    interface IDbAsyncEnumerable
Public Class ObjectQuery(Of T)
Inherits ObjectQuery
Implements IDbAsyncEnumerable(Of T), IEnumerable(Of T), IOrderedQueryable(Of T), IQueryable(Of T)

類型參數

T

這個 ObjectQuery 的結果類型

繼承
ObjectQuery<T>
衍生
屬性
實作

建構函式

名稱 Description
ObjectQuery<T>(String, ObjectContext, MergeOption)

使用指定的 Entity SQL 指令作為初始查詢,並以指定的合併選項建立一個新 ObjectQuery<T> 實例。

ObjectQuery<T>(String, ObjectContext)

使用指定的 Entity SQL 指令作為初始查詢,建立一個新 ObjectQuery<T> 實例。

屬性

名稱 Description
CommandText

傳回查詢的命令文字。

(繼承來源 ObjectQuery)
Context

取得與這個物件查詢相關聯的對象內容。

(繼承來源 ObjectQuery)
EnablePlanCaching

取得或設定值,這個值表示是否應該快取查詢計劃。

(繼承來源 ObjectQuery)
MergeOption

取得或設定從查詢傳回的物件如何新增至對象內容。

(繼承來源 ObjectQuery)
Name

取得或設定這個物件查詢的名稱。

Parameters

取得這個物件查詢的參數集合。

(繼承來源 ObjectQuery)
Streaming

無論是查詢是串流還是緩衝

(繼承來源 ObjectQuery)

方法

名稱 Description
Distinct()

將查詢限制為唯一的結果。

Except(ObjectQuery<T>)

此查詢建構方法會建立一個新查詢,其結果包含該查詢的所有結果,唯獨不包含其他指定查詢的結果。

Execute(MergeOption)

使用指定的合併選項執行物件查詢。

ExecuteAsync(MergeOption, CancellationToken)

非同步執行物件查詢,並使用指定的合併選項。

ExecuteAsync(MergeOption)

非同步執行物件查詢,並使用指定的合併選項。

GetResultType()

傳回查詢結果類型的相關信息。

(繼承來源 ObjectQuery)
GroupBy(String, String, ObjectParameter[])

依指定的準則將查詢結果分組。

Include(String)

指定要包含在查詢結果中的相關物件。

Intersect(ObjectQuery<T>)

此查詢建構方法會建立一個新查詢,其結果同時包含於此查詢與另一查詢中。

OfType<TResultType>()

將查詢限制為只有特定類型的結果。

OrderBy(String, ObjectParameter[])

依指定的準則排序查詢結果。

Select(String, ObjectParameter[])

將查詢結果限製為只定義於指定投影中的屬性。

SelectValue<TResultType>(String, ObjectParameter[])

將查詢結果限製為只有投影中指定的屬性。

Skip(String, String, ObjectParameter[])

依指定的準則排序查詢結果,並略過指定的結果數目。

Top(String, ObjectParameter[])

將查詢結果限製為指定的項目數目。

ToTraceString()

傳回要針對數據源執行的命令。

(繼承來源 ObjectQuery)
Union(ObjectQuery<T>)

此查詢建構方法會產生一個新查詢,其結果包含該查詢的所有結果,加上其他查詢的所有結果,且無重複(即結果唯一)。

UnionAll(ObjectQuery<T>)

此查詢建構方法會建立一個新查詢,其結果包含該查詢的所有結果,加上其他查詢的所有結果,包括重複的結果(即結果不一定唯一)。

Where(String, ObjectParameter[])

將查詢限製為符合指定篩選準則的結果。

明確介面實作

名稱 Description
IDbAsyncEnumerable.GetAsyncEnumerator()

回傳 , IDbAsyncEnumerator 列舉 時會對資料庫執行該 SQL 查詢。

(繼承來源 ObjectQuery)
IDbAsyncEnumerable<T>.GetAsyncEnumerator()

回傳 , IDbAsyncEnumerator<T> 列舉 時會對資料庫執行該 SQL 查詢。

IEnumerable.GetEnumerator()

傳回逐一查看集合的列舉器。

(繼承來源 ObjectQuery)
IEnumerable<T>.GetEnumerator()

回傳 , IEnumerator<T> 列舉 時會對資料庫執行該 SQL 查詢。

IListSource.ContainsListCollection

ObjectQuery 在物件層實作強型別查詢。 查詢以 Entity-SQL 字串來指定,並可透過呼叫 ObjectQuery 宣告的基於 Entity-SQL 的查詢建置方法來建立。

(繼承來源 ObjectQuery)
IListSource.GetList()

將集合作為 IList 資料綁定的使用資料。

(繼承來源 ObjectQuery)
IQueryable.ElementType

取得這個查詢實例的結果項目類型。

(繼承來源 ObjectQuery)
IQueryable.Expression

取得描述此查詢的表達式。 使用 LINQ 建構模式建立的查詢,會回傳完整的 LINQ 表達式樹;否則,回傳一個常數表達式包裹此查詢。 請注意,預設表達式並未被快取。 這讓我們能區分 LINQ 與 Entity-SQL 查詢。

(繼承來源 ObjectQuery)
IQueryable.Provider

取得與此查詢實例相關的資料 IQueryProvider 。

(繼承來源 ObjectQuery)

擴充方法

名稱 Description
AllAsync<TSource>(IQueryable<TSource>, Expression<Func<TSource,Boolean>>, CancellationToken)

非同步判斷序列中的所有元素是否滿足某一條件。

AllAsync<TSource>(IQueryable<TSource>, Expression<Func<TSource,Boolean>>)

非同步判斷序列中的所有元素是否滿足某一條件。

AnyAsync<TSource>(IQueryable<TSource>, CancellationToken)

非同步判斷序列是否包含任何元素。

AnyAsync<TSource>(IQueryable<TSource>, Expression<Func<TSource,Boolean>>, CancellationToken)

非同步判斷序列中任一元素是否滿足某條件。

AnyAsync<TSource>(IQueryable<TSource>, Expression<Func<TSource,Boolean>>)

非同步判斷序列中任一元素是否滿足某條件。

AnyAsync<TSource>(IQueryable<TSource>)

非同步判斷序列是否包含任何元素。

AsNoTracking<T>(IQueryable<T>)

回傳一個新查詢,回傳的實體不會快取在 DbContext 或 ObjectContext中。 此方法透過呼叫底層查詢物件的 AsNoTracking 方法來運作。 如果底層查詢物件沒有 AsNoTracking 方法,呼叫此方法將不受影響。

AsStreaming<T>(IQueryable<T>)
已淘汰.

會回傳一個新的查詢,將結果串流而非緩衝。 此方法透過呼叫底層查詢物件的 AsStreaming 方法來運作。 如果底層查詢物件沒有 AsStreaming 方法,呼叫此方法也不會有影響。

AverageAsync<TSource>(IQueryable<TSource>, Expression<Func<TSource,Decimal>>, CancellationToken)

非同步計算透過在輸入序列中每個元素上呼叫投影函數所得到的數值 Decimal 序列的平均值。

AverageAsync<TSource>(IQueryable<TSource>, Expression<Func<TSource,Decimal>>)

非同步計算透過在輸入序列中每個元素上呼叫投影函數所得到的數值 Decimal 序列的平均值。

AverageAsync<TSource>(IQueryable<TSource>, Expression<Func<TSource,Double>>, CancellationToken)

非同步計算透過在輸入序列中每個元素上呼叫投影函數所得到的數值 Double 序列的平均值。

AverageAsync<TSource>(IQueryable<TSource>, Expression<Func<TSource,Double>>)

非同步計算透過在輸入序列中每個元素上呼叫投影函數所得到的數值 Double 序列的平均值。

AverageAsync<TSource>(IQueryable<TSource>, Expression<Func<TSource,Int32>>, CancellationToken)

非同步計算透過在輸入序列中每個元素上呼叫投影函數所得到的數值 Int32 序列的平均值。

AverageAsync<TSource>(IQueryable<TSource>, Expression<Func<TSource,Int32>>)

非同步計算透過在輸入序列中每個元素上呼叫投影函數所得到的數值 Int32 序列的平均值。

AverageAsync<TSource>(IQueryable<TSource>, Expression<Func<TSource,Int64>>, CancellationToken)

非同步計算透過在輸入序列中每個元素上呼叫投影函數所得到的數值 Int64 序列的平均值。

AverageAsync<TSource>(IQueryable<TSource>, Expression<Func<TSource,Int64>>)

非同步計算透過在輸入序列中每個元素上呼叫投影函數所得到的數值 Int64 序列的平均值。

AverageAsync<TSource>(IQueryable<TSource>, Expression<Func<TSource,Nullable<Decimal>>>, CancellationToken)

非同步計算一列可 Decimal 空值的數列,該數列是透過對輸入序列中的每個元素呼叫投影函數所得到的。

AverageAsync<TSource>(IQueryable<TSource>, Expression<Func<TSource,Nullable<Decimal>>>)

非同步計算一列可 Decimal 空值的數列,該數列是透過對輸入序列中的每個元素呼叫投影函數所得到的。

AverageAsync<TSource>(IQueryable<TSource>, Expression<Func<TSource,Nullable<Double>>>, CancellationToken)

非同步計算一列可 Double 空值的數列,該數列是透過對輸入序列中的每個元素呼叫投影函數所得到的。

AverageAsync<TSource>(IQueryable<TSource>, Expression<Func<TSource,Nullable<Double>>>)

非同步計算一列可 Double 空值的數列,該數列是透過對輸入序列中的每個元素呼叫投影函數所得到的。

AverageAsync<TSource>(IQueryable<TSource>, Expression<Func<TSource,Nullable<Int32>>>, CancellationToken)

非同步計算一列可 Int32 空值的數列,該數列是透過對輸入序列中的每個元素呼叫投影函數所得到的。

AverageAsync<TSource>(IQueryable<TSource>, Expression<Func<TSource,Nullable<Int32>>>)

非同步計算一列可 Int32 空值的數列,該數列是透過對輸入序列中的每個元素呼叫投影函數所得到的。

AverageAsync<TSource>(IQueryable<TSource>, Expression<Func<TSource,Nullable<Int64>>>, CancellationToken)

非同步計算一列可 Int64 空值的數列,該數列是透過對輸入序列中的每個元素呼叫投影函數所得到的。

AverageAsync<TSource>(IQueryable<TSource>, Expression<Func<TSource,Nullable<Int64>>>)

非同步計算一列可 Int64 空值的數列,該數列是透過對輸入序列中的每個元素呼叫投影函數所得到的。

AverageAsync<TSource>(IQueryable<TSource>, Expression<Func<TSource,Nullable<Single>>>, CancellationToken)

非同步計算一列可 Single 空值的數列,該數列是透過對輸入序列中的每個元素呼叫投影函數所得到的。

AverageAsync<TSource>(IQueryable<TSource>, Expression<Func<TSource,Nullable<Single>>>)

非同步計算一列可 Single 空值的數列,該數列是透過對輸入序列中的每個元素呼叫投影函數所得到的。

AverageAsync<TSource>(IQueryable<TSource>, Expression<Func<TSource,Single>>, CancellationToken)

非同步計算透過在輸入序列中每個元素上呼叫投影函數所得到的數值 Single 序列的平均值。

AverageAsync<TSource>(IQueryable<TSource>, Expression<Func<TSource,Single>>)

非同步計算透過在輸入序列中每個元素上呼叫投影函數所得到的數值 Single 序列的平均值。

ContainsAsync<TSource>(IQueryable<TSource>, TSource, CancellationToken)

非同步地利用預設的等號比較器判斷序列是否包含特定元素。

ContainsAsync<TSource>(IQueryable<TSource>, TSource)

非同步地利用預設的等號比較器判斷序列是否包含特定元素。

CountAsync<TSource>(IQueryable<TSource>, CancellationToken)

非同步回傳序列中的元素數量。

CountAsync<TSource>(IQueryable<TSource>, Expression<Func<TSource,Boolean>>, CancellationToken)

非同步回傳序列中滿足條件的元素數量。

CountAsync<TSource>(IQueryable<TSource>, Expression<Func<TSource,Boolean>>)

非同步回傳序列中滿足條件的元素數量。

CountAsync<TSource>(IQueryable<TSource>)

非同步回傳序列中的元素數量。

FirstAsync<TSource>(IQueryable<TSource>, CancellationToken)

非同步回傳序列的第一個元素。

FirstAsync<TSource>(IQueryable<TSource>, Expression<Func<TSource,Boolean>>, CancellationToken)

非同步回傳滿足特定條件的序列中第一個元素。

FirstAsync<TSource>(IQueryable<TSource>, Expression<Func<TSource,Boolean>>)

非同步回傳滿足特定條件的序列中第一個元素。

FirstAsync<TSource>(IQueryable<TSource>)

非同步回傳序列的第一個元素。

FirstOrDefaultAsync<TSource>(IQueryable<TSource>, CancellationToken)

非同步回傳序列的第一個元素,若序列中沒有元素則回傳預設值。

FirstOrDefaultAsync<TSource>(IQueryable<TSource>, Expression<Func<TSource,Boolean>>, CancellationToken)

非同步回傳序列中第一個符合指定條件的元素,若未找到該元素則回傳預設值。

FirstOrDefaultAsync<TSource>(IQueryable<TSource>, Expression<Func<TSource,Boolean>>)

非同步回傳序列中第一個符合指定條件的元素,若未找到該元素則回傳預設值。

FirstOrDefaultAsync<TSource>(IQueryable<TSource>)

非同步回傳序列的第一個元素,若序列中沒有元素則回傳預設值。

ForEachAsync<T>(IQueryable<T>, Action<T>, CancellationToken)

非同步列舉查詢結果,並對每個元素執行指定動作。

ForEachAsync<T>(IQueryable<T>, Action<T>)

非同步列舉查詢結果,並對每個元素執行指定動作。

Include<T,TProperty>(IQueryable<T>, Expression<Func<T,TProperty>>)

指定要包含在查詢結果中的相關物件。

Include<T>(IQueryable<T>, String)

指定要包含在查詢結果中的相關物件。

LongCountAsync<TSource>(IQueryable<TSource>, CancellationToken)

非同步回傳 , Int64 代表序列中元素的總數。

LongCountAsync<TSource>(IQueryable<TSource>, Expression<Func<TSource,Boolean>>, CancellationToken)

非同步回傳 , Int64 代表序列中滿足條件的元素數量。

LongCountAsync<TSource>(IQueryable<TSource>, Expression<Func<TSource,Boolean>>)

非同步回傳 , Int64 代表序列中滿足條件的元素數量。

LongCountAsync<TSource>(IQueryable<TSource>)

非同步回傳 , Int64 代表序列中元素的總數。

MaxAsync<TSource,TResult>(IQueryable<TSource>, Expression<Func<TSource,TResult>>, CancellationToken)

非同步地對序列中的每個元素呼叫投影函數,並回傳最大結果值。

MaxAsync<TSource,TResult>(IQueryable<TSource>, Expression<Func<TSource,TResult>>)

非同步地對序列中的每個元素呼叫投影函數,並回傳最大結果值。

MaxAsync<TSource>(IQueryable<TSource>, CancellationToken)

非同步回傳序列的最大值。

MaxAsync<TSource>(IQueryable<TSource>)

非同步回傳序列的最大值。

MinAsync<TSource,TResult>(IQueryable<TSource>, Expression<Func<TSource,TResult>>, CancellationToken)

非同步地對序列中的每個元素呼叫投影函數,並回傳最小結果值。

MinAsync<TSource,TResult>(IQueryable<TSource>, Expression<Func<TSource,TResult>>)

非同步地對序列中的每個元素呼叫投影函數,並回傳最小結果值。

MinAsync<TSource>(IQueryable<TSource>, CancellationToken)

非同步回傳序列的最小值。

MinAsync<TSource>(IQueryable<TSource>)

非同步回傳序列的最小值。

SingleAsync<TSource>(IQueryable<TSource>, CancellationToken)

非同步回傳序列中唯一的元素,若序列中沒有恰好一個元素則拋出例外。

SingleAsync<TSource>(IQueryable<TSource>, Expression<Func<TSource,Boolean>>, CancellationToken)

非同步回傳序列中唯一符合特定條件的元素,若存在多個此類元素則拋出例外。

SingleAsync<TSource>(IQueryable<TSource>, Expression<Func<TSource,Boolean>>)

非同步回傳序列中唯一符合特定條件的元素,若存在多個此類元素則拋出例外。

SingleAsync<TSource>(IQueryable<TSource>)

非同步回傳序列中唯一的元素,若序列中沒有恰好一個元素則拋出例外。

SingleOrDefaultAsync<TSource>(IQueryable<TSource>, CancellationToken)

非同步回傳序列中唯一的元素,若序列為空則回傳預設值;此方法若序列中有多個元素,會拋出例外。

SingleOrDefaultAsync<TSource>(IQueryable<TSource>, Expression<Func<TSource,Boolean>>, CancellationToken)

非同步回傳序列中唯一符合指定條件的元素,若不存在該元素則回傳預設值;此方法若有多個元素符合條件,則拋出例外。

SingleOrDefaultAsync<TSource>(IQueryable<TSource>, Expression<Func<TSource,Boolean>>)

非同步回傳序列中唯一符合指定條件的元素,若不存在該元素則回傳預設值;此方法若有多個元素符合條件,則拋出例外。

SingleOrDefaultAsync<TSource>(IQueryable<TSource>)

非同步回傳序列中唯一的元素,若序列為空則回傳預設值;此方法若序列中有多個元素,會拋出例外。

Skip<TSource>(IQueryable<TSource>, Expression<Func<Int32>>)

略過序列中指定數目的專案,然後傳回其餘專案。

SumAsync<TSource>(IQueryable<TSource>, Expression<Func<TSource,Decimal>>, CancellationToken)

非同步計算透過呼叫投影函數在輸入序列中每個元素上所得到的數值 Decimal 序列總和。

SumAsync<TSource>(IQueryable<TSource>, Expression<Func<TSource,Decimal>>)

非同步計算透過呼叫投影函數在輸入序列中每個元素上所得到的數值 Decimal 序列總和。

SumAsync<TSource>(IQueryable<TSource>, Expression<Func<TSource,Double>>, CancellationToken)

非同步計算透過呼叫投影函數在輸入序列中每個元素上所得到的數值 Double 序列總和。

SumAsync<TSource>(IQueryable<TSource>, Expression<Func<TSource,Double>>)

非同步計算透過呼叫投影函數在輸入序列中每個元素上所得到的數值 Double 序列總和。

SumAsync<TSource>(IQueryable<TSource>, Expression<Func<TSource,Int32>>, CancellationToken)

非同步計算透過呼叫投影函數在輸入序列中每個元素上所得到的數值 Int32 序列總和。

SumAsync<TSource>(IQueryable<TSource>, Expression<Func<TSource,Int32>>)

非同步計算透過呼叫投影函數在輸入序列中每個元素上所得到的數值 Int32 序列總和。

SumAsync<TSource>(IQueryable<TSource>, Expression<Func<TSource,Int64>>, CancellationToken)

非同步計算透過呼叫投影函數在輸入序列中每個元素上所得到的數值 Int64 序列總和。

SumAsync<TSource>(IQueryable<TSource>, Expression<Func<TSource,Int64>>)

非同步計算透過呼叫投影函數在輸入序列中每個元素上所得到的數值 Int64 序列總和。

SumAsync<TSource>(IQueryable<TSource>, Expression<Func<TSource,Nullable<Decimal>>>, CancellationToken)

非同步計算透過對輸入序列中每個元素呼叫投影函數所得到的可 Decimal 空值序列總和。

SumAsync<TSource>(IQueryable<TSource>, Expression<Func<TSource,Nullable<Decimal>>>)

非同步計算透過對輸入序列中每個元素呼叫投影函數所得到的可 Decimal 空值序列總和。

SumAsync<TSource>(IQueryable<TSource>, Expression<Func<TSource,Nullable<Double>>>, CancellationToken)

非同步計算透過對輸入序列中每個元素呼叫投影函數所得到的可 Double 空值序列總和。

SumAsync<TSource>(IQueryable<TSource>, Expression<Func<TSource,Nullable<Double>>>)

非同步計算透過對輸入序列中每個元素呼叫投影函數所得到的可 Double 空值序列總和。

SumAsync<TSource>(IQueryable<TSource>, Expression<Func<TSource,Nullable<Int32>>>, CancellationToken)

非同步計算透過對輸入序列中每個元素呼叫投影函數所得到的可 Int32 空值序列總和。

SumAsync<TSource>(IQueryable<TSource>, Expression<Func<TSource,Nullable<Int32>>>)

非同步計算透過對輸入序列中每個元素呼叫投影函數所得到的可 Int32 空值序列總和。

SumAsync<TSource>(IQueryable<TSource>, Expression<Func<TSource,Nullable<Int64>>>, CancellationToken)

非同步計算透過對輸入序列中每個元素呼叫投影函數所得到的可 Int64 空值序列總和。

SumAsync<TSource>(IQueryable<TSource>, Expression<Func<TSource,Nullable<Int64>>>)

非同步計算透過對輸入序列中每個元素呼叫投影函數所得到的可 Int64 空值序列總和。

SumAsync<TSource>(IQueryable<TSource>, Expression<Func<TSource,Nullable<Single>>>, CancellationToken)

非同步計算透過對輸入序列中每個元素呼叫投影函數所得到的可 Single 空值序列總和。

SumAsync<TSource>(IQueryable<TSource>, Expression<Func<TSource,Nullable<Single>>>)

非同步計算透過對輸入序列中每個元素呼叫投影函數所得到的可 Single 空值序列總和。

SumAsync<TSource>(IQueryable<TSource>, Expression<Func<TSource,Single>>, CancellationToken)

非同步計算透過呼叫投影函數在輸入序列中每個元素上所得到的數值 Single 序列總和。

SumAsync<TSource>(IQueryable<TSource>, Expression<Func<TSource,Single>>)

非同步計算透過呼叫投影函數在輸入序列中每個元素上所得到的數值 Single 序列總和。

Take<TSource>(IQueryable<TSource>, Expression<Func<Int32>>)

從序列開頭傳回指定的連續項目數目。

ToArrayAsync<TSource>(IQueryable<TSource>, CancellationToken)

透過非同步枚舉從 建立 IQueryable<T> 陣列。

ToArrayAsync<TSource>(IQueryable<TSource>)

透過非同步枚舉從 建立 IQueryable<T> 陣列。

ToDictionaryAsync<TSource,TKey,TElement>(IQueryable<TSource>, Func<TSource,TKey>, Func<TSource,TElement>, CancellationToken)

透過非同步列舉,依照指定的鍵選擇器與元素選擇函式,從 建立 a Dictionary<TKey,TValue>IQueryable<T> 。

ToDictionaryAsync<TSource,TKey,TElement>(IQueryable<TSource>, Func<TSource,TKey>, Func<TSource,TElement>, IEqualityComparer<TKey>, CancellationToken)

透過非同步列舉,依照指定的鍵選擇函數、比較器及元素選擇函式,從 和 IQueryable<T> 建立 aDictionary<TKey,TValue>。

ToDictionaryAsync<TSource,TKey,TElement>(IQueryable<TSource>, Func<TSource,TKey>, Func<TSource,TElement>, IEqualityComparer<TKey>)

透過非同步列舉,依照指定的鍵選擇函數、比較器及元素選擇函式,從 和 IQueryable<T> 建立 aDictionary<TKey,TValue>。

ToDictionaryAsync<TSource,TKey,TElement>(IQueryable<TSource>, Func<TSource,TKey>, Func<TSource,TElement>)

透過非同步列舉,依照指定的鍵選擇器與元素選擇函式,從 建立 a Dictionary<TKey,TValue>IQueryable<T> 。

ToDictionaryAsync<TSource,TKey>(IQueryable<TSource>, Func<TSource,TKey>, CancellationToken)

透過非同步列舉,依照指定的鍵選擇函式從 中IQueryable<T>建立 aDictionary<TKey,TValue>。

ToDictionaryAsync<TSource,TKey>(IQueryable<TSource>, Func<TSource,TKey>, IEqualityComparer<TKey>, CancellationToken)

透過非同步列舉,根據指定的金鑰選擇函式與比較器,從 和 IQueryable<T> 建立 。Dictionary<TKey,TValue>

ToDictionaryAsync<TSource,TKey>(IQueryable<TSource>, Func<TSource,TKey>, IEqualityComparer<TKey>)

透過非同步列舉,根據指定的金鑰選擇函式與比較器,從 和 IQueryable<T> 建立 。Dictionary<TKey,TValue>

ToDictionaryAsync<TSource,TKey>(IQueryable<TSource>, Func<TSource,TKey>)

透過非同步列舉,依照指定的鍵選擇函式從 中IQueryable<T>建立 aDictionary<TKey,TValue>。

ToListAsync<TSource>(IQueryable<TSource>, CancellationToken)

透過非同步枚舉 從 中IQueryable<T>建立 aList<T>。

ToListAsync<TSource>(IQueryable<TSource>)

透過非同步枚舉 從 中IQueryable<T>建立 aList<T>。

適用於