public BookDAO() { _bookDataSet = new DataSet1(); _viewBookTableAdapter = new ViewBookTableAdapter(); _tabAuthorTableAdaptater = new TabAuthorTableAdapter(); _tabCategoryTableAdaptater = new TabCategoryTableAdapter(); _viewBookAvailableTableAdapter = new ViewBookAvailableTableAdapter(); _viewBookBorrowedTableAdapter = new ViewBookBorrowedTableAdapter(); _tabLanguageTableAdapter = new TabLanguageTableAdapter(); _tabBorrowTableAdapter = new TabBorrowTableAdapter(); _tabBookTableAdapter = new TabBookTableAdapter(); _tabReservedTableAdapter = new TabReservedTableAdapter(); }
/// <summary> /// Class constructor /// </summary> public BookDAO() { //Initialize objects _bookDataSet = new BookDS(); _tabBookTableAdapter = new TabBookTableAdapter(); _tabReservedTableAdapter = new TabReservedTableAdapter(); _tabBorrowTableAdapter = new TabBorrowTableAdapter(); _viewBookTableAdapter = new ViewBookTableAdapter(); _viewBookAvailableTableAdapter = new ViewBookAvailableTableAdapter(); _viewBookBorrowedTableAdapter = new ViewBookBorrowedTableAdapter(); _viewBookBorrowedWithUserTableAdapter = new ViewBookBorrowedWithUserTableAdapter(); _viewBookReservedTableAdapter = new ViewBookReservedTableAdapter(); }