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.
If you're new here, you may want to subscribe to my RSS feed. Thanks for visiting!




















































April 2nd, 2008 at 7:33 am
[...] Datasets ObjectDataSource and 3-Tier ASP.NETDatasets StoredProcedures and 3-Tier ASP.NETSwapping Out the Data Access LayerSwapping the Data Access Layer AbstractlyUsing Reflection to Load a Class in ASP.NET [...]