您的位置:首页 > 其它

关于[实体-字段-属性-关系]到[XML]设计器的开发

2007-05-26 17:55 274 查看
关于[实体-字段-属性-关系]到[XML]设计器的开发

准备做个VS.net 风格的IDE设计器,用来设计XML文件。
(画些实体-字段-属性-关系图,然后生成XML文件),大家有好介绍?

1〉创建〉工程〉项目〉设计图〉
2〉从工具栏拖个[实体]到设计界面,然后再给[实体]添加[字段],然后给[字段]设置[属性]。
3〉添加多个[实体]到设计界面,并组织他们的关系。
4〉保存成XML文件(实体-字段-属性-关系等信息)

现在在看SharpDevelop源代码,估计可以做到,不过还是觉得 庞大复杂了。
有没有更接近我的目标的 开源代码呢?
已经开发好的设计器代码/或者 拥有类似实体设计的源代码思想呢?
(ps:好像听说NBear中也有实体设计器,不晓得我可以借鉴学习不。)

自己很久没了解新知识了,落伍了,非常需要大家的帮助。
请 大家赐教,感谢!!

加贴张图,设计实体的时候,就像这个界面:



上图可以生成XML:
<Entity name="Template">
<AttributeGroup>
<Attribute id="1" name="ConnectionString" type="System.String">
<Attribute id="2" name="Error" type="System.String">
<Attribute id="3" name="GeneratedCode" type="System.String">
<Attribute id="4" name="InnerException" type="System.String">
<Attribute id="5" name="Input" type="System.String">
<Attribute id="6" name="IsSuccessfule" type="System.String">
<Attribute id="7" name="Output" type="System.String">
<Attribute id="8" name="Setting" type="System.String">
</AttributeGroup>
</Entity>

一些牛人写的!!:
http://www.cnblogs.com/michael-zhang/articles/655267.html
http://www.divil.co.uk/net/articles/designers/hosting.asp
http://msdn.microsoft.com/msdnmag/issues/06/03/DesignerHosting/default.aspx
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: