}
//在下面加一条这个就行了
if (menu.ViewPower!=null) {
menu.ViewPowerID = menu.ViewPower.ID;
}
我没法上传图片...
在Menu中编辑浏览权限就报错.
A referential integrity constraint violation occurred: The property value(s) of 'Power.ID' on one end of a relationship do not match the property value(s) of 'Menu.ViewPowerID' on the other end.