Beispiel #1
0
 public void update(Models.Book book)
 {
     using (BookLibrary dc = new BookLibrary(connectionString, mapping))
     {
         var original = from b in dc.GetTable<Models.Book>() where b.id == book.id select b;
         dc.updateBook(book.id, book.name, book.authorId, book.categoryId);
     }
 }