I use VB.NET and DataSets; I have two tables and an attitude. I am querying the first table, but I cannot use Group Byin any field of the table. Here is the error I see:
Group By
The definition of the 'GroupBy' method is not available in this context
And my code is as follows:
Dim Groups = From n In dataSetTableAsEnumerable _ Group By n.filedName Into Group
Thanks for any help.
You need to say which thing you are grouping, for example:
Dim Groups = From n In dataSetTableAsEnumerable _ Group n By n.filedName Into Group _ Select Group
In your case, you need Group n By, not just Group By.
Group n By
Imports System.Linq to the top of your vb code file.
Source: https://habr.com/ru/post/1760983/More articles:markup of a text parser, for example, formatting stackoverflow in Objective-C - iphonewhy can't I use log files in java runtime - javaGrails: Custom Comment Evaluator Using Spring Security Plugin - spring-securityHow to lock a folder on a USB drive? - c #Replace \ r \ n Newlines using XSLT and .NET C # VS 2008 - .netтак много вариантов доступа к данным, что использовать? - c#Not equal in mongo mapper - ruby | fooobar.comDataGridView HasErrors? - c #The base class defines many protected methods: is it a good OOP design? - protectedSometimes online application data synchronization - html5All Articles