Guys I'm newbie to LINQ. Kindly help me out. Following is my scenario...
ParaId-------ErrorId
1-------------1
60------------2
125-----------3
126-----------3
127-----------3
128-----------3
129-----------3
247-----------4
248-----------4
249-----------4
Above is the result out of some query.The ErrorId column repeats values. What I want is the Min and Max values for ParaId column for each group of ErrorId values...
For example for ErrorId 3, the Min ParaId is 125 and Max is 129.
I'm stuck at... var q = abc.GroupBy(x => x.ErrorID); // abc is the resultset
And don't know what to do next. Kindly help me sort out the above.
Thanks in advance.