【发布时间】:2013-07-24 21:34:04
【问题描述】:
我有一个连接多个表的视图。我可以将视图的一列设置为主视图,使其看起来像一个表。现在我希望更新视图连接中包含的表之一,但我收到错误View or function 'XXX' is not updatable because the modification affects multiple base tables.
我的更新是这样的
Persons P = Personrepository.getPerson(256)
p.Active = 0;
Personrepository.Update(p);
Personrepository.save();
更新后我再次返回视图的结果。请问我该怎么做?
【问题讨论】:
标签: sql asp.net-mvc join sql-update