DataTable dt = new DataTable();dt.Clear();dt.Columns.Add(“Name”);dt.Columns.Add(“Marks”);DataRow _ravi = dt.NewRow();_ravi[“Name”] = “ravi”;_ravi[“Marks”] = “500”;dt.Rows.Add(_ravi);
You can use either built-in ADO.NET objects or for ORM supports you can use Entity Framework.