<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>3-Tire | Student Projects</title>
	<atom:link href="https://studentprojects.in/tag/3-tire/feed/" rel="self" type="application/rss+xml" />
	<link>https://studentprojects.in</link>
	<description>Microcontroller projects, Circuit Diagrams, Project Ideas</description>
	<lastBuildDate>Sat, 10 Dec 2022 03:55:29 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.1.7</generator>
	<item>
		<title>3-Tier Architecture in .NET</title>
		<link>https://studentprojects.in/software-development/dotnet/dotnet-tutorials/3tire-architecture/</link>
					<comments>https://studentprojects.in/software-development/dotnet/dotnet-tutorials/3tire-architecture/#respond</comments>
		
		<dc:creator><![CDATA[Ranjan]]></dc:creator>
		<pubDate>Sun, 01 Jan 2012 13:54:53 +0000</pubDate>
				<category><![CDATA[.NET Tutorials]]></category>
		<category><![CDATA[3-Tire]]></category>
		<category><![CDATA[N-Tire Architecture]]></category>
		<guid isPermaLink="false">http://studentprojects.in/?p=2471</guid>

					<description><![CDATA[<p>3-Tier architecture generally contains User Interface (UI) or Presentation Layer, Business Access/Logic Layer (BAL) and Data Access Layer (DAL).</p>
<p>The post <a href="https://studentprojects.in/software-development/dotnet/dotnet-tutorials/3tire-architecture/">3-Tier Architecture in .NET</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></description>
										<content:encoded><![CDATA[<figure id="attachment_2475" aria-describedby="caption-attachment-2475" style="width: 268px" class="wp-caption alignleft"><a href="https://studentprojects.in/wp-content/uploads/2012/01/N-TireSnapshot.png"><img decoding="async" class="wp-image-2475 size-medium" title="Solution Explorer" src="https://studentprojects.in/wp-content/uploads/2012/01/N-TireSnapshot-268x300.png" alt="Solution Explorer" width="268" height="300" /></a><figcaption id="caption-attachment-2475" class="wp-caption-text">Snapshot</figcaption></figure>
<p><strong>Introduction</strong></p>
<p>3-Tier architecture generally contains User Interface (UI) or Presentation Layer, Business Access/Logic Layer (BAL) and Data Access Layer (DAL).</p>
<p><strong>Presentation Layer (UI)</strong><br />
Presentation layer is responsible for displaying the views. Contains windows forms or ASP.NET pages, where data is presented to the user or input is taken from the user. We will consider a sample Windows form application which will show the Authors information and details in the UI.</p>
<p><strong>Business Access Layer (BAL) or Business Logic Layer </strong></p>
<p>BAL contains business logic, validations or calculations related with the data</p>
<p><strong>Business Entities</strong></p>
<p>Business entities are reusable entities developed as per the application. We are making use of these entities in BAL and DAL. The data access layer fetches the data and converts the data say to a List of business entity. Ex: When we are retrieving a list of Authors details, the DAL will fetch all the authors and returns List&lt;AuthorsBE&gt; list of author’s business entities.</p>
<p><strong>Data Access Layer (DAL)</strong></p>
<p>DAL contains methods that helps business layer to connect the data and perform required action, might be returning data or manipulating data (insert, update, delete etc). For this demo pubs sample application, the BAL makes a call to data access to get all the list of authors i.e GetAllAuthors(), to get all the list of author titles GetAuthorTitleDetails(string authorID)</p>
<p>&nbsp;</p>
<p><strong>Advantages of N-Tier Application</strong></p>
<ol>
<li>Decoupling the logic: By loose coupling the logics of Presentation, Business and Data access suppose if there is a change in the UI layer, you will only have to only about the modifications in the Presentation layer. Right now it is using SQL Server database so in future is there is a change in the database we will have to modify the logic with in the Data access layer and nothing else.</li>
<li>With layered architecture you can do the software development in Parallel. That means you can code each layers independently</li>
<li>Easy to Test: The testability of the software increases by decoupling the logics into multiple layers. You can independently Unit Test the logics of different layers</li>
<li>Reusability of Components</li>
</ol>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><strong>How to run the sample:</strong></p>
<ol>
<li>Download pubs database sample from <a href="http://www.microsoft.com/download/en/details.aspx?id=23654">http://www.microsoft.com/download/en/details.aspx?id=23654</a> link</li>
<li>Install the MSI: SQL2000SampleDb.msi , run the scripts to create Pubs database.</li>
<li>Download the sample project for this article from the below mentioned link for &#8216;Sample Project for Download&#8217;</li>
<li>Open SQL Management studio and execute the stored procedures with in the DataAccessLayer &#8211; &gt; Scripts folder in Pubs database.</li>
<li>Open PubsSamplePresentation.sln Solution from VS 2010 or VS2011</li>
<li>Go to PubsSamplePresentation and open App.config</li>
<li>Change the connection string (PubsConnectionString) value appropriately</li>
<li>Run the Windows Form application &#8211; PubsSamplePresentation</li>
</ol>
<p>Sample Project for Download: <a href="https://studentprojects.in/wp-content/uploads/2012/01/PubsSamplePresentation.zip">PubsSamplePresentation</a></p>
<p>&nbsp;</p>
<p>&nbsp;</p><p>The post <a href="https://studentprojects.in/software-development/dotnet/dotnet-tutorials/3tire-architecture/">3-Tier Architecture in .NET</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://studentprojects.in/software-development/dotnet/dotnet-tutorials/3tire-architecture/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
