阅读背景:

当我从DTO构建EF对象时,如何将EF对象层次结构保存到db?

来源:互联网 

I have created an editor that uses Entity Framework for db-access. The editor is a clientside editor that works via JavaScript. When the user clicks the save-button JavaScript calls my ASP.NET MVC method with the data as a JSON-string. The data is an object containing a list of nodes. I use inheritance in EF to allow the nodes to be of different types. The JSON that is sent from the browser is converted by MVC automatically to a DTO object. I then create EF-objects based on the DTO object. My question is how do I save the modifications to all the objects?I have created an editor that uses Entity Frame




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: