I want to insert My data into my table named as 'Inward' controller code:
public ActionResult Create(Inward i)
{
if(Model.IsValid)
{
db.Inward.Add(i);
db.SaveChanges();
return View();
}
}
This Code Is Showing Error When Control Comes To db.SaveChange() Mathod; And It Is Showing Error 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.