Blogs

eXpress App Framework Team

DC: Implemented interfaces in BOModel

     

This post may be outdated. For the latest Domain Components concepts and examples refer to the current online documentation.

This post is one in a series about our work on Domain Components (DC) framework and related component libraries. I’m just describing what we are working on, what problems we are facing and what results we've got so far.

While playing with CRM domain models, I've got a component like this:

	[DomainComponent]
	public interface IContact : IPersonalContactInfo, IPerson {
		IAccount Account { get; set; } 
	}

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:

DC4-01

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

Published Oct 01 2008, 07:00 AM by Roman Eremin (DevExpress)
Filed under: ,
Technorati tags: XAF, DC
Bookmark and Share

Comments

 

Marco said:

Well,

Nice stuff, though I foresee a lot of breaking changes when DC will be released. Currently, I use Explicit Interface implementation to prevent certain members to be generated in views automatically.

In general, I don't think we want every interface member to be visible in views, do we?

Any thoughts how to handle such situations?

Marco

October 1, 2008 5:03 AM
 

Marco said:

Right,

I should have  read the DC: Interfaces and BOModel topic first.

DomainComponentAttribute solves my problem very well...

Marco

October 1, 2008 5:10 AM
More from DevExpress
Live Chat
Have a pre-sales question?
Need assistance with your evaluation?
We are here to help.
Chat is one of the many ways you can contact members of the DevExpress Team. We are available Monday-Friday between 8:30am and 5:00pm Pacific Time.
If you need additional product information, require pre-sales assistance, or want help with your order, write to us at info@devexpress.com or call us at
+1 (818) 844-3383.