c# - Very confused about how to Group by in LINQ, and even more confused about HAVING -
I'm new to Linq. I'm trying to change this simple SQL query, but to change LINQ to SQL No great resources can be found. My SQL query is:
Select some value from some value SomeValue HAVING SUM (OtherValue) & gt; 0; I do not understand enough LINQ to do this. I'm having a lot of trouble working with the group, I have not tried to deal with it so far.
I have tried some things. This is most recent, though it is still very wrong:
By entering someTable group entry from the entry. Select grp in some values grp.Select (x = & gt; x.SomeValue) .toList (); Any help or resources will be good.
The grouping is working to get it seems that you want it (rather than Lambda Query syntax):
Log in from some entry into the Stable Group Entry. Some values include GRP where grp.Sum (x => x .OtherValue) & gt; 0 Select grp.Key;
Comments
Post a Comment