efcore icon indicating copy to clipboard operation
efcore copied to clipboard

Support new .NET LINQ features

Open roji opened this issue 3 years ago • 8 comments

  • [ ] #24479
  • [ ] #28634
  • [ ] #25566
  • [ ] #25569
  • [ ] #27470

roji avatar Aug 18 '21 12:08 roji

Is it possible to add to this the support of .ToDictionary() during a projection given that it is a Linq feature that is missing? #25986

radderz avatar Jan 03 '22 04:01 radderz

@radderz the above list is about supporting new LINQ operators introduced in .NET. There's nothing new about using ToDictionary in a projection - it's just not something EF Core doesn't currently support. The idea wasn't for this list to track any construct that isn't yet translated.

roji avatar Jan 03 '22 10:01 roji

Can we simply have an IQueryable<T>.LeftJoin<T,T1,Tkey,TReturn>(IQueryable<T1> joinSource, Expression<Func<T,Tkey> outer, Expresion<Func<T,Tkey>> inner, JoinOperator @operator, Expression<Func<T1,T2,TReturn> selector) method?

John0King avatar Feb 16 '22 07:02 John0King

@John0King that is tracked by #12793, and would be a new EF Core operator rather than supporting existing LINQ operators.

roji avatar Feb 16 '22 10:02 roji

What about the new DistinctBy?

thorgeirk11 avatar Feb 17 '22 22:02 thorgeirk11

@thorgeirk11 thanks, opened #27470 to track that, and posted some preliminary analysis.

roji avatar Feb 18 '22 10:02 roji

I know this is old, but do you have any plans on adding support for string.Join? See #2981

luciniga avatar Apr 21 '22 07:04 luciniga

@luciniga string.Join isn't a LINQ operator, it's just another .NET function that can be used within LINQ operators. It's tracked by #2981, which is currently in the Backlog, meaning that it isn't in the plan for 7.0.

roji avatar Apr 21 '22 08:04 roji