David Hayden [MVP C#]

Sponsors

The Lounge

News

  • CodeBetter.Com Home

Other Links

Teas

Patterns & Practices

Florida .NET Developer

Book Reviews

Tampa ASP.NET MVC Developer Group

Advertisement

Images in this post missing? We recently lost them in a site migration. We're working to restore these as you read this. Should you need an image in an emergency, please contact us at imagehelp@codebetter.com
Enterprise Library 4.0 DAAB with Unity Screencast

Enterprise Library 4.0 ScreencastI received a few requests for a screencast to go along with my tutorial:

so I went ahead and cooked one up:

The screencast walks you through creating a console application that uses the Enterprise Library 4.0 Data Access Application Block for use with Unity. I show how to obtain database classes using Unity.Resolve<Database> as well as how to inject the database classes into your custom classes ( CustomerDAO in this case ).

I discuss a couple of the Unity Extension Classes, EnterpriseLibraryCoreExtension and DataAccessBlockExtension, and jump into Reflector to show you what the DataAccessBlockExtension is doing behind the scenes.

You might want to take a peek at my article on the DatabaseConfigurationView Class to get more information on how the DataAccessBlockExtension gets access to the Data Access Application Block Configuration Information to populate the UnityContainer:

 

I hope the screencast is useful. Feel free to browse through any of the other screencasts as well.


Posted Tue, May 20 2008 3:44 PM by David Hayden
Filed under:

[Advertisement]