3 Tier Architecture in

3 Tier Architecture in, 3 Tier Architecture in C#, 3 tier architecture, 3 tier architecture of dbms


I am publishing next version 3 tier architecture article of 4.5, In c# 4.5 have some new up gradations to know when  working on 3 tier architecture,  I have provided key steps to know on 3 tier architecture 4.5 given below:

Step 1: We have to add “blank solution” file to the project.

Project Solution

Step 2: Now right click on solution, property window will open, click on “Add” option, sub menu will pop up and then finally click on “New Project…”.

Add New Project

Step 3: Now expand left pane, click on “Visual C#” then select on “Web” option, next one select to option “ASP.NET Web Forms Application”, type Presentation layer name “TC.CRM.Presentation”, select “Location” of the Presentation layer and finally click on “OK” button. Be careful drop down list version information “.NET framework 4.5”.

Presentation Layer

Step 4: Now we have to follow the same steps to design Data Access Layer as we done to accomplish to Presentation layer “TC.CRM.DLL”.  We have to select “Visual C#” then click on “Windows” now on middle section select “Class Library”, type “Name” of layer “TC.CRM.DLL”, select folder option on “Location”, you may set “Location” with click on “Browse…” button. Check always drop down list .net framework option, if not correct version then select desired version “.NET framework 4.5”.

DAL Layer

Step 5: Follow the same initial steps as mentioned in step #2 to design, now expand left pane “Visual C#” then select “Windows” and select “Class Library” in middle pane. Type Entity name ”TC.CRM.Entity”  in “Name” information, set folder option in “Location” information, we may set desired option click on “Browse…” button also. Be careful to set the desired framework “.NET Framework 4.5”.

Entity Layer

Step 6: Now we have to set “Entity layer “ output path in Presentation layer “Bin” folder, It will output all DLL in one folder.

Entity Output Path

 Step 7: Now in the same way, we have set “Output Path” in “Bin” folder of Presentation Layer.

DAL Output Path

Step 8: Now add reference of “Entity Layer” and “Data Access Layer”.

Add Reference

Step 9: Now you may notice in your presentation layer, two namespaces added “TC.CRM.DAL” and “TC.CRM.Entity”.
Step 10: Now you have to add reference in “Data access layer” of “Data Entity layer”. 
Step 11: Now you may notice 3 tier architecture in your “Solution Explore”.

3 Tier Architecture in

Step 12
: Now build solution & DLL will be generated in targeted “Bin” folder.

Rebuild Solution

Step 13: Now all DLL are generated in desired folder & you may check DLL i.e. “TC.CRM.DAL.dll”, “TC.CRM.Entity.dll”, “TC.CRM.Presentation.dll”.

Generated DLL

3 Tier Architecture Model

Video:3 Tier Architecture in

Suggested Reading


Anjan kant

Outstanding journey in Microsoft Technologies (ASP.Net, C#, SQL Programming, WPF, Silverlight, WCF etc.), client side technologies AngularJS, KnockoutJS, Javascript, Ajax Calls, Json and Hybrid apps etc. I love to devote free time in writing, blogging, social networking and adventurous life

Post A Comment: