How to create a dataset in c# through programmatically?

How to create a dataset in c# through programmatically?

 

DataSet Class Signature


public class DataSet:
System.ComponentModel.IListSource,
System.ComponentModel.MarshalByValueComponent,    
System.ComponentModel.ISupportInitializeNotification,
System.Runtime.Serialization.ISerializable,   
System.Xml.Serialization.IXmlSerializable 

 

DataSet Customer_Orders = new DataSet("Customer_Orders");  

 

DataTable dt = new DataTable("dt");
dt.Columns.Add("Name");
dt.Columns.Add("Id");

dt.Rows.Add("Mohan", 1);
dt.Rows.Add("Ram", 2);
dt.Rows.Add("Lakshman", 3);
Customer_Orders.Fill(dt);

2021-10-03