用于复杂更改信息的文件或数据库结构 [英] File or Database structure for complex changing information

查看:58
本文介绍了用于复杂更改信息的文件或数据库结构的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我正在进行最终设计之前正在研究和尝试新项目的各个方面.它分为两个部分:

1.设计器界面(如visio)
2.客户端显示在设计器界面中创建的内容.

我们拥有大多数系统结构,客户端将以多种形式出现,通过使用Flash或Silverlight的Web(取决于所安装的软件)以及通过使用WPF应用程序的Windows. 我想知道人们对于从设计师那里存储信息的选择是什么,所有客户都需要通过互联网访问信息,因此数据库驱动的解决方案似乎是首选.但是另一种选择是将设计者的信息以XML之类的格式导出,并将其存储为物理文件.

设计人员将只是一个多页应用程序,用户将在屏幕上放置诸如图像和按钮之类的内容.
因此,在每次更改每页(幻灯片)时都进行更新,删除和插入操作时,数据库方法将需要大量工作.

XML方法似乎更易于管理,因为每次修改页面(幻灯片)时,都可以删除和重新创建XML文件,也可以用新的设计器布局替换其中的内容.

Hello, I''m researching and experimenting with aspects of a new project before final design. It will be in two parts:

1. a designer interface (like visio)
2. client to display the content created within the designer interface.

We have most of the system structure in place, the client will be in many forms, via the web using Flash or Silverlight (depending what''s installed) and via windows using a WPF application.
I would like to know what peoples option is regarding storing information from the designer, all the clients will need to access the information via the internet so a database driven solution seems the first choice. But another alternative is exporting the information from the designer in something such as XML and storing that as a physical file.

The designer will be simply a multiple page application and teh user will place things such as images and buttons on screen.
So the database approach will require a lot of work when changes are made with update, delete and inserts every time each page (slide) is changed.

The XML approach seems easier to manage because each time the page (slide) is amended the XML file can either be delete and recreated or the content inside replaced with the new designer layout.

It would be great to hear what people think.

推荐答案

删除和重新创建方法也适用于数据库.您不会是第一个这样做的人.

如果您是在谈论用户界面(窗体,按钮等)的设计师,那么最近针对此类事物的发展似乎正在朝着XML
发展. 例如. WPF和Android Apps仅举两个例子.

因此,您有两个示例可以用来启发您的文件格式.

哎呀,如果您正在考虑使用WPF来构建您的APP,则只需使用WPF文件格式即可.这样,您就可以使用现成的编辑器来创建测试文件.

-Rd
The delete and recreate approach can also work for DB''s. You wouldn''t be the first to do it.

If you are talking about a designer for User Interfaces (forms, buttons etc) then the move recently for such things seems to be towards XML
E.g. WPF and Android Apps to name just two.

So you have two examples there that you can use as inspiration for your file format.

Heck, if you''re thinking of using WPF to build your APP then just use the WPF file format. That way you''ve got a ready made editor for creating test files.

-Rd


这篇关于用于复杂更改信息的文件或数据库结构的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆