XAF 在BOModel中实现接口<DC翻译博客六>

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/

原文地址:https://www.cnblogs.com/Tonyyang/p/1942834.html