using System; using System.Data; namespace ConsoleApp { class Program { static void Main(string[] args) { var dataTable = new DataTable(); var dataAdapter = new SqlDataAdapter(); var dataSet = new DataSet(); dataAdapter.Fill(dataTable); dataSet.Tables.Add(dataTable); // Do something with dataSet dataSet.Dispose(); } } }In the above code example, a new DataTable, SqlDataAdapter, and DataSet are created. A SQL query can fill the table and the table is added to the DataSet. After using the data, the Dispose method is called to release the memory and resources used by the DataSet. This package belongs to the .NET Framework Class Library.