Hey .Net Experts.

You might have started using .Net 4.0 and Visual Studio 2010. But are you sure that you all are using most of the advance features of .Net or still you are using the same boring .Net 1.1 features, as someone said "Old Wine in New Bottle". If so, I think this article will help you to implement some new features available in .Net 2.0/3.5/4.0.

Abstract

This article will guide you to migrate your application from 2-Tier architecture (was possible in VB6.0, .Net 1.0/1.1) to the most advance Data Access methodology available in .Net 4.0.

Please keep watching all migration articles one by one. If it really helps you out then please don't forget to put your feedback and comments.

Old Wine in New Bottle

If you are writing all the data access logic inside your code behind, I guess your code looks like this.


So, all your data access code is being meshed up within the code behind and these practices were very old compared to the new advanced design patterns.

Let's do this application in a 3-Tier approach. Although the 3-Tier approach is obsolete, still it is the base for any advanced design pattern. So it's very much essential to learn and know the pattern. Let's see the fundamental diagram of a 3-Tier architecture.
Basics of 3-tier Architecture:

Basic 3-Tier architecture

ado.net1.gif

Figure 1:
Basic 3-Tier architecture

The above describes a very simple architecture of a 3-tier model.
This diagram describes an actual implementation of a 3-tier model.
To know more about 3-Tier Architecture please visit my next Article ADO .NET Evolution: Part I: 2-Tier to 3-Tier.