2

I need to write an extension method for LINQ on C# which implements following scheme.

A generic extension method which implements over (partition by columnName1 ORDER BY columnName2 DESC).

I mean want to be able to implement same logic with same keyword on c# . Not with different way same result.

...ROW_NUMBER() OVER(PARTITION BY columnName1 ORDER BY columnName2 DESC) ....
Burak Kalafat
  • 68
  • 2
  • 15
  • Please show what you have tried. If `Row_number` is the problem there are previous questions answering the matter – Gilad Green Jan 20 '18 at 07:25
  • You can use `Skip`, `Take` extension methods, you just have to write query in little different way but those will do it. – Akash Kava Jan 20 '18 at 07:32

0 Answers0