日期:2014-05-20 浏览次数:20753 次
QcInfoEntities context=new QcInfoEntities();
DAL.Users user=new Users()
{
User_ID = Guid.Parse("8787D20E-CCCC-41DF-A44A-5A272B7FAFA6"), //主键
User_Name = "131"
};
context.Users.Attach(user);
context.Entry(user).State = EntityState.Modified;
context.SaveChanges();