0% found this document useful (0 votes)
53 views13 pages

5 Adodotnet by Example m5 Slides

Implementing 3-Tier Architecture discusses: 1) The importance of separating an application into presentation, business, and data tiers for improved scalability and maintenance. 2) How transaction management works in 3-tier architecture using ADO.NET to update multiple records atomically. 3) How to create a class library project and consume it from both a Windows Forms application and an ASP.NET web application by registering the assembly as shared.

Uploaded by

amitfegade121
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
53 views13 pages

5 Adodotnet by Example m5 Slides

Implementing 3-Tier Architecture discusses: 1) The importance of separating an application into presentation, business, and data tiers for improved scalability and maintenance. 2) How transaction management works in 3-tier architecture using ADO.NET to update multiple records atomically. 3) How to create a class library project and consume it from both a Windows Forms application and an ASP.NET web application by registering the assembly as shared.

Uploaded by

amitfegade121
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 13

Implementing 3-Tier Architecture

Sekhar Srinivasan
@sekharonline4u I sekhartheguru.net
Implementing 3-Tier Architecture

......
o

.....
o
-
-..... -

o
Middle Tier
Server Business
...... -
o Rules

.......

o
.-

Data Server
Business
Data

Client
Presentation
Logic
Why 3-Tier Architecture

1111 Windows Application

--
- -
-
Web Application
Why 3-Tier Architecture

Web Application


- - - - - -

- - - - - -

-
- - - -
- -
-
- -

Presentation Logic Middle Tier3 Presentation Logic


-
What is Transaction Management

What is Class Library and How to Create a Class


Library

Developing Windows Forms Application

How to Share Assembly Definition

Finally Building a Web Application

r ur , ,
Understanding Transaction Management
Why Transaction Management
- --
Fr om Account # : 101

To Ac co un t # : 102

Amount : so
o

Update accounts Update accounts


Set amount= amount -500 Set amount= amount +500
Where account two = 101 Where account two = 102

10 7500
1 8500
10 1600
2 0
- - -
Why Transaction Management
- --
Fr om Account # : 101

To Ac co un t # : l 02

Update accounts
Amount : so
o
Transfer
x
Update accounts
Set amount= amount -500 Set amount= amount +500
Where account two = 101 Where account two = 102

101 7500
102 8500 8500
1600 1550
0 0
To Do-Implementing 3-Tier Architecture

, 13ank
Transaction .di!
-- ,

fftlftl'. N:ttbltttl 101


, Fro1n Accou111 # : 101

-
T o Account '02 To Accounc II: 102
Amount: 1000
1 00 ()
( Tran&fer

-
T....-

" =
Class Library - Private Assembly

c:\VBApplication

Source.c Bin\ Debug


s
VBApplication.exe

l
csc/t:library Source.cs
Source.di! (

l ASP.NET WebSite using


C#
Private Assembly/ Bin
Class Library/
IUCIU
Business Object/ Source.di!
.NET Component
Class Library - Shared
Assembly
Sn-k FileName.snk I .txt
< Strong Name Key File

l
csc/t:library Source.cs

l gacutil-i Assembly )
Global
Assembly
Cache
(GAC)
i i
ASP.NET WebSite using C#

Bin
PSBank Online Transactions

Consume the Class


From Aecouni # 101
'

T o Account #. 10

Library from ASP.NET


1

Amount . 500

Amount Transferred SuccessfUll\'


Web Site Using C#
Summar
yImportance of 3-Tier Architecture

Transaction Management using


8 =- ADO.NET
How to create a class library file
8
===-- Consume the class library file from t h e
a8 Windows Forms Application

a=- Register the Class Library as a shared assembly

="==-- Consume the class library from ASP.NET Web Site

You might also like