Exemplo n.º 1
0
 /// <summary>
 /// Returns all registers from Book view.
 /// </summary>
 /// <returns>BookDS.ViewBookDataTable</returns>
 /// <exception cref="ex">Exception</exception>
 public BookDS.ViewBookDataTable GetAllBooksView()
 {
     try
     {
         _viewBookTableAdapter.FillAllBooks(_bookDataSet.ViewBook);
         return(_bookDataSet.ViewBook);
     }
     catch (Exception ex)
     {
         //Error log simulate
         Console.WriteLine(ex.ToString());
         Console.WriteLine(ex.GetBaseException().ToString());
         throw;
     }
 }
Exemplo n.º 2
0
 public BookDS.ViewBookDataTable GetAllBooksView()
 {
     _viewBookTableAdapter.FillAllBooks(_bookDataSet.ViewBook);
     return(_bookDataSet.ViewBook);
 }