語言

ObjectSet<TEntity> 類別

定義

表示用來執行建立、讀取、更新和刪除作業的具型別實體集。

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

類型參數

TEntity

實體的類型。

繼承
ObjectQuery<TEntity>
ObjectSet<TEntity>
屬性
實作

屬性

名稱 Description
CommandText

傳回查詢的命令文字。

(繼承來源 ObjectQuery)
Context

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

(繼承來源 ObjectQuery)
EnablePlanCaching

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

(繼承來源 ObjectQuery)
EntitySet

取得由此 ObjectSet<TEntity> 實例所代表的實體集合的元資料。

MergeOption

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

(繼承來源 ObjectQuery)
Name

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

(繼承來源 ObjectQuery<T>)
Parameters

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

(繼承來源 ObjectQuery)
Streaming

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

(繼承來源 ObjectQuery)

方法

名稱 Description
AddObject(TEntity)

將物件加入至目前實體集中的物件內容。

ApplyCurrentValues(TEntity)

將所提供物件的標量值複製到具有相同鍵的物件 ObjectContext 中。

ApplyOriginalValues(TEntity)

將 的OriginalValues屬性設定ObjectStateEntry為與所提供物件的屬性值相匹配。

Attach(TEntity)

將物件或物件圖形附加至目前實體集中的物件內容。

CreateObject()

建立新的實體類型物件。

CreateObject<T>()

建立指定型別的實例。

DeleteObject(TEntity)

標記要刪除的物件。

Detach(TEntity)

從物件內容中移除物件。

Distinct()

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

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

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

(繼承來源 ObjectQuery<T>)
Execute(MergeOption)

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

(繼承來源 ObjectQuery<T>)
ExecuteAsync(MergeOption, CancellationToken)

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

(繼承來源 ObjectQuery<T>)
ExecuteAsync(MergeOption)

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

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

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

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

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

(繼承來源 ObjectQuery<T>)
Include(String)

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

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

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

(繼承來源 ObjectQuery<T>)
OfType<TResultType>()

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

(繼承來源 ObjectQuery<T>)
OrderBy(String, ObjectParameter[])

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

(繼承來源 ObjectQuery<T>)
Select(String, ObjectParameter[])

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

(繼承來源 ObjectQuery<T>)
SelectValue<TResultType>(String, ObjectParameter[])

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

(繼承來源 ObjectQuery<T>)
Skip(String, String, ObjectParameter[])

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

(繼承來源 ObjectQuery<T>)
Top(String, ObjectParameter[])

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

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

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

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

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

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

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

(繼承來源 ObjectQuery<T>)
Where(String, ObjectParameter[])

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

(繼承來源 ObjectQuery<T>)

明確介面實作

名稱 Description
IDbAsyncEnumerable.GetAsyncEnumerator()

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

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

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

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

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

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

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

(繼承來源 ObjectQuery<T>)
IListSource.ContainsListCollection

表示用來執行建立、讀取、更新和刪除作業的具型別實體集。

(繼承來源 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>。

適用於