Exemple #1
0
 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();
 }
Exemple #2
0
 /// <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();
 }