public void update(Models.Author author) { using (BookLibrary dc = new BookLibrary(connectionString, mapping)) { var original = from a in dc.GetTable<Models.Author>() where a.Id == author.Id select a; dc.updateAuthor(author.Id, author.name); } }