Visio中的模型C#属性 [英] Model C# Properties in Visio

查看:88
本文介绍了Visio中的模型C#属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好
我想知道您如何为c#属性的最新实现建模,我的意思是这个

Hi Guys
I would like to know how do you model the latest implementation of c# properties, i mean this

Public string People{get;set;}


在visio图表中,请共享一个链接.我主要在Java中做过这件事.
预先谢谢你
Mninawa


in visio diagrams,please share a link if you can. I''ve been doing it mostly in java.
Thank you in advance
Mninawa

推荐答案



我认为您可以将实体窗口类库项目中的图表模型绘制到Visual Studio中的UI网站中.

示例:

Hi,

I think you could draw a diagram model from you entity window class library project into your UI website in visual studio.

Example:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace cbn.Entities
{
    [Serializable]
    public class Cable_Trn
    {
        public long RecId { get; set; }
        public string CableDescription { get; set; }
    }

    [Serializable]
    public class AuditTrail : Cable_Trn
    {
        public long RecId { get; set; }
        public string AuditDesc { get; set; } 
    }

}




编译上面的实体Windows类库,然后从UI网站对您的Windows类实体进行引用.右键单击您的UI网站,然后单击查看类图.将实体类拖到一个空的图工具框中.届时将创建一个实体类图.

AuditTrail引用到Cable_Trn.

希望这会有所帮助.

鉴于此,




Compiled the above entity windows class library then make a reference into your windows class entity from the UI website. Right click on your UI website and then click on view Class Diagram. Drag the entity class into an empty diagram tool box. By then will create an entity class diagram.

AuditTrail referencing into Cable_Trn.

Hope this could help a lot.

Regards,


Visio尚未完全实现UML.缺少的部分太多了.
Visio does not have full implementation of UML. Too many missing pieces.


应该是这样,但在visio中
it should be something like this but in visio
+------------------------+
| FooClass               |
|------------------------|
|«property» + Foo : int  |
|------------------------|
| +DooFoo(in myParam:int)|
+------------------------+


感谢所有做出贡献的人.


Thanx to everyone who contributed..


这篇关于Visio中的模型C#属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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