How to locally save model object on MVC 4?

和自甴很熟 提交于 2019-12-25 06:57:52

问题


I have a model on MVC project and suitable xml document , which gets from web service and it will be deserialized with type of my model. And I will get deserialized object and work with it. How to save locally changes in this model object?


回答1:


The design of your persistence layer depends alot on the purpose of your applciation, and the lifetime of the objects persisted. A NoSQL solution would provide a simple way to serialize/deserialize objects your application. MVC 4 pushes Entity Frameworkas its "Code-First" option for persisting objects into a SQL Server backed data store. Entity Framework has plenty of tutorials at the link I shared.



来源:https://stackoverflow.com/questions/21700102/how-to-locally-save-model-object-on-mvc-4

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!