Replies: 8 comments
-
Should we have an issue for each new LINQ clause, or will you collect them all here? |
Beta Was this translation helpful? Give feedback.
-
What does |
Beta Was this translation helpful? Give feedback.
-
@ckuhn203 While skips the rest of the items as soon as any item doesn't match. Where only skips the items that don't match. |
Beta Was this translation helpful? Give feedback.
-
@orthoxerox I'd think that each would be managed separately (although if you'd be suggesting a family of clauses I could see them proposed as one). My thoughts for this particular proposal was that it's relatively low hanging fruit in that it's syntactically unambiguous given that |
Beta Was this translation helpful? Give feedback.
-
@HaloFour have you thought about extending this to |
Beta Was this translation helpful? Give feedback.
-
Is this new operator easily translatable to SQL? (And I'm afraid it's not easily parallelizable, as it depends on the element ordering.) |
Beta Was this translation helpful? Give feedback.
-
@vladd it would be possible but complicated to translate to SQL. However, there's no requirement for any ORM to implement support for this. For example, Entity Framework has never supported |
Beta Was this translation helpful? Give feedback.
-
@vladd It's an existing LINQ method, |
Beta Was this translation helpful? Give feedback.
-
Copied from dotnet/roslyn#15638
Low effort/reward proposal:
I propose that the existing C# keyword
while
be added as a LINQ query expression clause. Unlikewhere
which filters out elements that do not meet the conditionwhile
would include all elements as long as the condition is met. Sincewhile
is already a keyword this would not break any existing syntax.Beta Was this translation helpful? Give feedback.
All reactions