GroupJoin()各参数的意义及用法

EF Core中GroupJoin的注释比较复杂:

        public static IEnumerable<TResult> GroupJoin<TOuter, TInner, TKey, TResult>(this IEnumerable<TOuter> outer, IEnumerable<TInner> inner, Func<TOuter, TKey> outerKeySelector, Func<TInner, TKey> innerKeySelector, Func<TOuter, IEnumerable<TInner>, TResult> resultSelector, IEqualityComparer<TKey> comparer);

下面的例子形象直观。

posted @ 2019-08-01 14:57  jqdy  阅读(1474)  评论(1编辑  收藏  举报