1

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.
Jimmy Jain
  • 17
  • 4
  • 1
    possible duplicate of [Unable to update the EntitySet - because it has a DefiningQuery and no element exist](http://stackoverflow.com/questions/7583770/unable-to-update-the-entityset-because-it-has-a-definingquery-and-no-updatefu) – Karl Kieninger Apr 30 '14 at 06:58
  • can you show the Inward model definition? – Shahzad Khan May 04 '14 at 07:28

0 Answers0