public DataAccessLayer() { adpCategories = new NorthwindDataSetTableAdapters.CategoriesTableAdapter(); tblCategories = new NorthwindDataSet.CategoriesDataTable(); adpSuppliers = new NorthwindDataSetTableAdapters.SuppliersTableAdapter(); tblSuppliers = new NorthwindDataSet.SuppliersDataTable(); adpProducts = new NorthwindDataSetTableAdapters.ProductsTableAdapter(); tblProducts = new NorthwindDataSet.ProductsDataTable(); }
// constructor public CrudOperationsInTypedDataSet() { _adpProducts = new NorthwindDataSetTableAdapters.ProductsTableAdapter(); _tblProducts = new NorthwindDataSet.ProductsDataTable(); }