Skip to content

Commit

Permalink
Fix .ToDictionaryAsync() call (#2586)
Browse files Browse the repository at this point in the history
  • Loading branch information
viceroypenguin committed Oct 31, 2020
1 parent 52975b1 commit 9bc6125
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/LinqToDB/AsyncExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ public static async Task<Dictionary<TKey,TElement>> ToDictionaryAsync<TSource,TK
{
if (source is ExpressionQuery<TSource> query)
{
var dic = new Dictionary<TKey,TElement>();
var dic = new Dictionary<TKey,TElement>(comparer);
await query.GetForEachAsync(item => dic.Add(keySelector(item), elementSelector(item)), token).ConfigureAwait(Common.Configuration.ContinueOnCapturedContext);
return dic;
}
Expand Down

0 comments on commit 9bc6125

Please sign in to comment.