каждый пример, который я видел, показывает, как выполнить запрос на обновление в linq to sql.
// grab entity you want to update
entity.UserId = "123"; // update the fields you want to update.
entity.Name = "bob";
Dbcontext.SubmitChanges();
Мне интересно, можете ли вы просто передать новый объект и выяснить это?
Как я мог это сделать?
Enity myEntity = new Entity();
myEntity.UserId = "123";
myEntity.Name = bob:
// grab entity record
// shove record ito the found record
// it figured out what to update and what no to update