ef4.1 DBContext更新主键如题dbc.EntryT_NY_WORDBODY(item).State EntityState.Modifieddbc.SaveChan
ef4.1 DBContext更新主键
如题
dbc.Entry<T_NY_WORDBODY>(item).State = EntityState.Modified;
dbc.SaveChanges();
就可以更新了
但如果我需要更新的是主键怎么办呢?(主键没有设置标识列)
除了先删除再添加 有其他办法么?
[解决办法]
没人知道么?
