CodeBetter.Com
CodeBetter.Com
RSS 2.0 via Feedburner
           Do you Twitter? Follow us @CodeBetter

Jeremy D. Miller -- The Shade Tree Developer

Under the hood and working with .Net, TDD, Software Design, and Agile Stuff

StructureMap.DataAccess

I forgot to mention it, but there is a new component being shipped with StructureMap called StructureMap.DataAccess.  It's just a little helper component that wraps common ADO.Net manipulation I use when I need traditional DAL functionality (think opening and closing connections, try/catch, better exception messages, transaction management, etc.).  I finally combined it into StructureMap under the Apache 2.0 license mostly because I wanted to use it across projects, mostly to write test automation harnesses and other little utilities.  Life is simply too short to waste human being time on ADO.Net manipulation.

Feel free to use it, steal code from it, or just plain laugh at it.  Be aware that it's optimized for ease of use, not performance. 

Part of the value of OSS is that you can read the code and under a permissive license, lift out that code to use somewhere else.  I've done it with NUnit & NAnt, so I certainly don't mind if anyone tinkers with StructureMap or StoryTeller.

Right now it only supports MSSQL because that's all I've been using the last couple of years.  I had an Oracle version a rewrite or two ago that I'll probably add back in soon for my current project. 

I'm thinking about harnessing some FitNesse fixture classes from a past project for setting up and executing data intensive FIT tests that used DataAccess and releasing those fistures as part of StoryTeller, again so I can reuse that stuff across projects.

StructureMap was originally intended to be an O/R mapping and data access tool, and StructureMap.DataAccess is all that's left of that original pipe dream.



Comments

Ayende Rahien said:

Just to point out, you are aware that NAnt is GPLed, right?

That is not permissive by my definition.

# April 15, 2007 12:39 AM

Jeremy D. Miller said:

Thanks for that, I haven't reused code from NAnt, only used it as a reference.  NAnt's a bit tricky because it's GPL but has special dispensations for reuse and redistribution.

# April 15, 2007 1:09 PM

Leave a Comment

(required)  
(optional)
(required)  

Enter the numbers above:
Add

About Jeremy D. Miller

Jeremy began his IT career writing "Shadow IT" applications to automate his engineering documentation, then wandered into software development because it looked like more fun. Jeremy previously worked as a systems architect building mission critical supply chain software for a Fortune 100 company and learned agile development practices as a .Net consultant at ThoughtWorks, one of the pioneers of agile development. Jeremy is the author of the open source StructureMap (http://structuremap.sourceforge.net) tool for Dependency Injection with .Net and the forthcoming StoryTeller (http://storyteller.tigris.org) tool for supercharged FIT testing in .Net. Jeremy's thoughts on just about everything software related can be found on his weblog "The Shade Tree Developer" at http://codebetter.com/blogs/jeremy.miller, part of the popular CodeBetter site. Jeremy is a Microsoft MVP for C#. Check out Devlicio.us!

This Blog

Syndication

News

All opinions expressed here constitute my (Jeremy D. Miller's) personal opinion, and do not necessarily represent the opinion of any other organization or person, including (but not limited to) my fellow employees, my employer, its clients or their agents.

About Me

"Best Of" Compendium

StructureMap (Dependency Injection for .Net)

StoryTeller (Supercharged Fit)

Build your own Cab

TestDriven

MVP