5 Adodotnet by Example m5 Slides
5 Adodotnet by Example m5 Slides
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
--
- -
-
Web Application
Why 3-Tier Architecture
Web Application
- - - - - -
- - - - - -
-
- - - -
- -
-
- -
-
What is Transaction Management
r ur , ,
Understanding Transaction Management
Why Transaction Management
- --
Fr om Account # : 101
To Ac co un t # : 102
Amount : so
o
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!
-- ,
-
T o Account '02 To Accounc II: 102
Amount: 1000
1 00 ()
( Tran&fer
-
T....-
" =
Class Library - Private Assembly
c:\VBApplication
l
csc/t:library Source.cs
Source.di! (
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
T o Account #. 10
Amount . 500