我想将我的数据插入名为'Inward'的表中 控制器代码:
public ActionResult Create(Inward i)
{
if(Model.IsValid)
{
db.Inward.Add(i);
db.SaveChanges();
return View();
}
}
当控制进入db.SaveChange()Mathod时,此代码显示错误; 它显示错误AS:
Unable to update the EntitySet 'Inward' because
it has a DefiningQuery and no <InsertFunction>
element exists in the <ModificationFunctionMapping>
element to support the current operation.