私が見たすべての例では、これを行うことでSQLへのlinqでの更新クエリの実行方法を示しています。Linqを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
linq to sqlまたはこの添付メソッドについてはよく分かりません。私が知っているのは、あなたがレコードをつかんでそこに変更を加えて提出するところで私があなたに示したものです。 – chobo2