阅读背景:

如何从ASP中序列化实体。NET MVC站点到XML?

来源:互联网 

I am working on an ASP.NET MVC (in c#) site which connects to a database and takes advantage of the entities framework. I'd like people to be able to modify the information in the database from the site (since it seems to me to be much easier to display and validate data via an ASP.NET MVC site than a Desktop app while being much easier to distribute the tools to do). Then I want users to be able to export the database (after the changes they made) to an XML file which can be loaded by a desktop application I created. I'm wondering if there is an easy way to have the classes created by the entities framework which represent the data in the database serialize their information to an XML file? Then I asume I'd be able to reuse the same generated code in my desktop application to read those XML files and create the objects to represent the data for use in that program? I am working on an ASP.NET MVC (in c#) site whi




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

分享到: