Incorporating A Database Provider

May 22, 2009 at 12:46 AM

I am new to codeplex and 2.  First, it looks like a great tool.  I have reviewed a bunch of discussions about database incorporation, and before I go down this road I would like to know if I am on the right track.

Would it be feesible to incorporate a database provider by creating a DBDataProvider.cs class ?  Similar to the FlickrDataProvider, I would imagine parameters like DBprovider, catalog, table name, userid, password, etc ?

It would encapsulate all db type integration without touching the "base 2" code.  So, when the main project is update this DBDataProvider class can simply be added to the project.  You would keep all the cool stuff, but be able to retrieve the images from a database rather than the harddrive.

In addition, there could be a DBConfiguration.cs class that would configure the slide show from a database (whether the images come from there or not).

Any input or thoughts would be appreciated.

Thank you in advance.