... Team LiB ] Recipe 2.2 Building a DataSet Programmatically Problem You want to build a DataSet programmatically—including adding tables, columns, primary keys, and relations—from a schema ... the DataSet identifying the tables, columns, indexes, constraints, and data relations that need to be created. 2. Create a new DataSet, naming it in the constructor. 3. Create a new DataTable, ... new DataSet("MyDataSet"); // Build the Orders (parent) table. DataTable parentTable = new DataTable("Orders"); DataColumnCollection cols = parentTable.Columns; // Add...