Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How should I best query my dataset from VB.net?

Tags:

vb.net

dataset

I have a VB.Net data set that contains data from multiple tables. Does anyone have any good suggestions on how to query data out of the dataset. I want to run SQL-like queries on a dataset to extract data that fits a certain "where" statement.

like image 645
Andrew Parsons Avatar asked Dec 04 '22 15:12

Andrew Parsons


1 Answers

Use the DataTable.Select() method.

Here is some information from the official MSDN documentation.

As said in later posts, Linq is another possibility and will probably give you much more versatility, which you may not need depending upon your own requirements.

like image 198
TheTXI Avatar answered Jan 02 '23 16:01

TheTXI