how can i save my model to another same model ?
I basically wanted to save two models at the same time.Code:[HttpPost] public ActionResult Create(Employee employee) { if (ModelState.IsValid) { db.Employees.Add(employee); db.Employees_log.Add(employee); ===> error: "unable to update entityset because it has a definingquery and no insertfunction" db.SaveChanges(); } }





Reply With Quote