Sunday, February 21, 2010 #

Enterprise Library 5 Configuration Editor for Unity 2

Enterprise Library 5 and Unity 2 are in Beta 1 and I attempted to give the Enterprise Library 5 Configuration Editor a bit of a spin configuring Unity 2 graphically. Up until now, the Enterprise Library GUI Configuration Editor has not supported Unity so this is the first time Enterprise Library Developers are seeing it.

Unfortunately, I was not able to get the Type Editor to load my assemblies to recognize my types for proper alias registration and typemapping. Everytime I attempted to load a file not in the GAC I received various errors about the EntLib 5 GUI Editor not being able to recognize the file, etc.

Anyway, my goal was just to see what the configuration looked like in the editor so I added the Unity Configuration Section, aliases and registrations for Unity by hand and below is the visual respresentation of the App.Config settings:

 

Enterprise Library 5 Configuration Editor for Unity 2

 

The new Enterprise Library 5 Editor is going to take some getting used to for sure. Shown above I added two aliases, IContactDAO and ContactDAO, as well as a type mapping between the two. I have been configuring Unity via XML and fluently for so long that I probably won't use the graphical editor, but for those of you just starting to learn Enterprise Library 5 and Unity 2 you will probably love the graphical editor.

I believe there are still a number of things that need to be ironed out in beta 1, but if you like to be on the cutting edge, you certainly may want to download Enterprise Library 5 and Unity 2 Beta 1 to give them a spin.

 

David Hayden

 

Enterprise Library 5 and Unity 2 Tutorials

 

posted @ 10:37 AM

Main

David Hayden Google +

David Hayden Twitter

Health & Fitness

JavaScript Patterns Book Review

HTML 5 and CSS3 - Develop with Tomorrow's Standards Today

Professional ASP.NET Design Patterns Book Review

Beginning Mac Programming Book Review

C# in Depth Book Review

ASP.NET MVC

Orchard CMS

Categories