Using Reflection to Load a Class in ASP.NET

Last week, we took a look at creating a DAL that would allow us to swap out database providers without having to rewrite a lot of our code.  The only problem with the code I showed you is that you still have to change code whenever you swap databases.  This is not very flexible.

Today we are going to embellish this one more step so that all you should need to do is change an entry in the appSettings section of web.config and the database will be changed.

Related Post

One Response to “Using Reflection to Load a Class in ASP.NET”