first_page

Design Diary: An Interface-Based Approach toward the System.Data Namespace

Buy this book at Amazon.com!The first episode of the four-part design patterns series, “Jean-Paul Boodhoo on Demystifying Design Patterns Part 1,” brought to my attention an interface-based approach toward the System.Data namespace. My earlier priority was expressing support for the System.Data.Common namespace—and this priority comes with the demand that you have to support the System.Data.Common namespace or you can’t work with my data access solution.

By overloading my System.Data.Common static helpers with relevant System.Data interfaces, the scope of my data access solution broadens. Now my new demand is, ‘Your data provider must implement the relevant System.Data interfaces (e.g. IDbConnection, IDbCommand, IDataReader, etc.) in order to work with my code.’ This effectively means that your database must support the .NET framework itself in order to work with the Songhay System Data Access Framework. This is a remarkable achievement and it only took me over a year to reach this very simple place. Sorry, Jean-Paul!

JP Boodhoo coding up a stormThis little re-factoring adventure yields a few, minor Funky Knowledgebase articles:

rasx()