i create as DataSet called Northwind and Table called Products
when i add a new column called ProductID
what is the difference Between These two ways to adding The column and anyone is the better??
VB.NET:
Dim dsNorthwind As New DataSet("Northwind")
Dim dtProducts As New DataTable("Products")
dsNorthwind.Tables.Add(dtProducts)
when i add a new column called ProductID
VB.NET:
Dim dcProductID As New DataColumn("ProductID")
what is the difference Between These two ways to adding The column and anyone is the better??
VB.NET:
dtProducts.Columns.Add(dcProductID)
dsNorthwind.Tables("Products").Columns.Add(dcProductID)