Strongly-Typed ASP.NET MVC with Entity Framework

后端 未结 5 540
孤街浪徒
孤街浪徒 2020-12-16 09:01

This code fails to actually save any changes:

//
// POST: /SomeType/Edit/5

[AcceptVerbs(HttpVerbs.Post)]
public ActionResult Edit(Guid id, SomeType Model)
{         


        
5条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-16 09:33

    I have this working, but what iam not able to get at is the parent entity of SalesOrderDetail How can i get at it?

    SalesOrderDetail.SalesOrderHead is null and also entityreference is null. My edit routine has access to the id of SalesOrderDetail only.

    Thanks Sri

提交回复
热议问题