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.
Like this Article? Subscribe to get every article sent to your email.
- Swapping the DAL Abstractly Last Thursday, we looked at how to replace the TableAdapter with our own TableAdapter as a way or eliminating our dependence on Microsoft SQL. The problem with this implementation is […]
- What’s In My Blogging Toolbox? So as I thought this week about what I might write, I decided to review the various tools that I use to get stuff done. I started this post with the stuff I use to create the blog […]
- Reflection -The Constructor Remember, last week we started a series on using Reflection in our .NET applications. We've loaded the assembly already, so the next step is creating the object. Today's tutorial will […]
- DotNetNuke – Data Access Layer Alternative Now that I've explained the standard way of creating a Data Access Layer (DAL) for DotNetNuke, we can address the alternative method of providing this same functionality.You see, the only […]
- Mixing ASP.NET, jQuery and JSON I received the following question last week: I am building a web application... I have a form with asp.net server control textbox and dropdownlist... how can I send this to the […]
About Dave Bush