TestEntities context = new TestEntities();
var item = context.TestTables.Single(s => s.ID == 1);//item.Name is "Giorgi"
item.Name = "Hello";
var item1 = context.TestTables.Single(s => s.ID == 1);
Console.WriteLine(item1.Name);
context.SaveChanges();
你希望写什么?你好写!为什么?
TestEntities context = new TestEntities();
var item = context.TestTables.Single(s => s.ID == 1);//item.Name is "Giorgi"
item.Name = "Hello";
var item1 = context.TestTables.Single(s => s.ID == 1);
context.SaveChanges();
Console.WriteLine(item1.Name);
你希望写什么?你好写!为什么?
*
有两个不同的问题*