QueryableExtensions.ToDictionaryAsync 方法
包括受保护的成员
包括继承的成员
[本页针对的是实体框架版本 6。最新版本以“实体框架”NuGet 包的形式提供。有关实体框架的更多信息,请参见 msdn.com/data/ef。]
从 IQueryable<T> 创建 Dictionary<TKey, TValue>,方法是:根据指定的键选择器函数来异步枚举它。
重载此成员。有关此成员的完整信息(包括语法、用法和示例),请单击重载列表中的相应名称。
重载列表
![公共方法 公共方法](images/dn221654.pubmethod(vs.113).gif) ![静态成员 静态成员](images/dn619172.static(vs.113).gif) |
ToDictionaryAsync<TSource, TKey>(IQueryable<TSource>, Func<TSource, TKey>) |
从 IQueryable<T> 创建 Dictionary<TKey, TValue>,方法是:根据指定的键选择器函数来异步枚举它。 |
![公共方法 公共方法](images/dn221654.pubmethod(vs.113).gif) ![静态成员 静态成员](images/dn619172.static(vs.113).gif) |
ToDictionaryAsync<TSource, TKey>(IQueryable<TSource>, Func<TSource, TKey>, IEqualityComparer<TKey>) |
从 IQueryable<T> 创建 Dictionary<TKey, TValue>,方法是:根据指定的键选择器函数和比较器来异步枚举它。 |
![公共方法 公共方法](images/dn221654.pubmethod(vs.113).gif) ![静态成员 静态成员](images/dn619172.static(vs.113).gif) |
ToDictionaryAsync<TSource, TKey, TElement>(IQueryable<TSource>, Func<TSource, TKey>, Func<TSource, TElement>) |
从 IQueryable<T> 创建 Dictionary<TKey, TValue>,方法是:根据指定的键选择器函数和元素选择器函数来异步枚举它。 |
![公共方法 公共方法](images/dn221654.pubmethod(vs.113).gif) ![静态成员 静态成员](images/dn619172.static(vs.113).gif) |
ToDictionaryAsync<TSource, TKey>(IQueryable<TSource>, Func<TSource, TKey>, CancellationToken) |
从 IQueryable<T> 创建 Dictionary<TKey, TValue>,方法是:根据指定的键选择器函数来异步枚举它。 |
![公共方法 公共方法](images/dn221654.pubmethod(vs.113).gif) ![静态成员 静态成员](images/dn619172.static(vs.113).gif) |
ToDictionaryAsync<TSource, TKey>(IQueryable<TSource>, Func<TSource, TKey>, IEqualityComparer<TKey>, CancellationToken) |
从 IQueryable<T> 创建 Dictionary<TKey, TValue>,方法是:根据指定的键选择器函数和比较器来异步枚举它。 |
![公共方法 公共方法](images/dn221654.pubmethod(vs.113).gif) ![静态成员 静态成员](images/dn619172.static(vs.113).gif) |
ToDictionaryAsync<TSource, TKey, TElement>(IQueryable<TSource>, Func<TSource, TKey>, Func<TSource, TElement>, IEqualityComparer<TKey>) |
从 IQueryable<T> 创建 Dictionary<TKey, TValue>,方法是:根据指定的键选择器函数、比较器和元素选择器函数来异步枚举它。 |
![公共方法 公共方法](images/dn221654.pubmethod(vs.113).gif) ![静态成员 静态成员](images/dn619172.static(vs.113).gif) |
ToDictionaryAsync<TSource, TKey, TElement>(IQueryable<TSource>, Func<TSource, TKey>, Func<TSource, TElement>, CancellationToken) |
从 IQueryable<T> 创建 Dictionary<TKey, TValue>,方法是:根据指定的键选择器函数和元素选择器函数来异步枚举它。 |
![公共方法 公共方法](images/dn221654.pubmethod(vs.113).gif) ![静态成员 静态成员](images/dn619172.static(vs.113).gif) |
ToDictionaryAsync<TSource, TKey, TElement>(IQueryable<TSource>, Func<TSource, TKey>, Func<TSource, TElement>, IEqualityComparer<TKey>, CancellationToken) |
从 IQueryable<T> 创建 Dictionary<TKey, TValue>,方法是:根据指定的键选择器函数、比较器和元素选择器函数来异步枚举它。 |
顶部
请参阅
参考
QueryableExtensions 类
System.Data.Entity 命名空间