Blogs

News

Favorite Posts

ctodx

Discussions, news and rants from the CTO of Developer Express, Julian M Bucknall

eXpressApp Framework: the noob demo edition

     

Here’s a hint if you ever have to work an exhibitor booth: if you specialize in a particular portion of your main product, it’s a guaranteed certainty that someone will walk up and ask you about another part. Some feature or functionality that you are somewhat hazy about. So, this morning…

…enter the customer who wanted to know about eXpressApp Framework and my number was up.

Let me emphasize that I can talk about the features of XAF until the cows come home, but this customer wanted a full demo with a start-from-scratch solution. I have not done this demo for a full year, possibly more. Gary is not part of this trip, so the heat was most assuredly on.

File New Project: easy. I selected the full application option. I was going to do Oliver’s old demo staple of books and authors. First problem: my SQL Server Express installation is named and so doesn’t respond to “(local)” as the name. Where do I change that again? (Answer: app.config and web.config; two places and I forgot the second.) Second problem: I couldn’t for the life of me remember the XAF/XPO templates in CodeRush and there was no way I could remember enough to type a new domain object property from zero.

This necessitated a trip into the CodeRush Options page. Which is, as I’m sure you know, big. As in BIG. And I’d got the “noob” setting at the bottom so I couldn’t see the templates. Mark wasn’t around either so I had to work it all out from scratch. I finally found that the relevant templates are: xc for a new domain object (actually you shouldn’t need this particularly since you generally use Add New Item for the module and you get the right code as part of the Visual Studio template); xp<type> for a new property of a domain object; xpa for a new one-to-one or one-to-many association between two classes; and xpcl for a many-to-one association.

Once I had all that refreshed in my memory, the demo went very well.

Nevertheless, learn from my mistakes and revise enough before your trip to your company’s booth that you can provide a ‘light’ demo at a moment’s notice on any subject. You may find your expert on a feature has mysteriously disappeared.

Published Nov 03 2010, 05:07 PM by Julian Bucknall (DevExpress)
Filed under: , ,
Technorati tags: XPO, DevConnections, XAF
Bookmark and Share

Comments

 

Nate Laff said:

i learned something from this -- templates for domain objects in code rush! :) i just used code snippets. i really need to play with code rush, i utilize only a percentage of what it can do.

here's what i do about connectionstrings -- i create a connectionStrings.config and add it as a link to win an web, then in the app.config and web.config i set the connectionString configSource to that. Then I only have to change the connection string in one spot! handy!

November 3, 2010 11:47 PM
 

James S K Makumbi said:

Great post.

I myself was pleasantly startled to find the templates being used in the Videos cause i was tired of typing SetPropertyValue("").

How come noe of your demos only deal with simple basic db IO? there are no calculated fields or such complexities.

November 4, 2010 3:31 AM
 

Dennis (DevExpress Support) said:

Julian,

Good job! Also, feel free to phone me or Gary next time;-)

November 4, 2010 4:59 AM
 

Gary Short (DevExpress) said:

Well at least you could demo it Julian ;-)

I've found the best way to ensure that you can demo all our products is to have to do smaller events on your own (like BASTA for example). There's no place to hide then and customers have a way of finding the gaps in your knowledge if you are not on the ball... curse them all. LOL.

November 4, 2010 6:54 AM
 

Julian Bucknall (DevExpress) said:

Dennis: I didn't phone you guys because I didn't want to wake you up :P

Gary: Good point about practice making perfect. But then again, I should have put 2 and 2 together and worked out that I was ipso facto the XAF expert on this trip and done more prep.

Cheers, Julian

November 4, 2010 4:18 PM

About Julian Bucknall (DevExpress)

Julian is the Chief Technology Officer at Developer Express. You can reach him directly at julianb@devexpress.com. You can also follow him on Twitter with the ID JMBucknall.
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.