public void update(Models.Category category) { using (BookLibrary dc = new BookLibrary(connectionString, mapping)) { var original = from c in dc.GetTable<Models.Category>() where c.Id == category.Id select c; dc.updateCategory(category.Id, category.name, category.description); } }