.NET 學習

.NET 學習生活感想... 万事成蹉跎..... 贵在坚持 及时整理自己做过和学过的东西

博客园 首页 新随笔 联系 订阅 管理

DC: Implemented interfaces in BOMode(BOModel中实现接口)

While playing with CRM domain models, I've got a component like this:
当用CRM领域构件,我有这样一个组件:

 

view plain | print | copy to clipboard

1

[DomainComponent]  

2

    public interface IContact : IPersonalContactInfo, IPerson {  

3

        IAccount Account { getset; }   

4

    } 

This led me to one more issue that prevents XAF from working with the new models. I found out that the BOModel node doesn’t provide information about implemented interfaces. I would like XAF to treat implemented interfaces as it currently treats base classes – include base members into generated Views and reuse View Info provided for base classes.So, to start, I need information about implemented interfaces in the BOModel. To make a long story short – here it is:

This led me to one more issue that prevents XAF from working with the new models. 我发现BOModel节点不提供关于实现接口的信息。我想XAF把实现的接口当做当前基类包括基成员的视图生成,为基类提供重用视图信息。因此,要启动,在BOMode中我需要关于接口实现的信息。长话短说,在这里它是:

The next step is to make members of the implemented interfaces visible in Views.

下一步使在视图中实现的接口成员显示。

欢迎转载,转载请注明出处:http://www.cnblogs.com/Tonyyang/

posted on 2011-01-24 08:56  Tonyyang  阅读(537)  评论(0编辑  收藏  举报
欢迎转载,转载请注明出处:http://www.cnblogs.com/Tonyyang/