Microsoft DNA
review
N
Layer structure overview
l
Serious service layer
Ø
Draw a user interface
Ø
Handle user input
l
Business service layer
Ø
Run business rules and logic
l
Data service layer
Ø
Abstract representation of data storage
Ø
Ensure atomic, consistency,
Sneaky, sexy
(ACID)
N-layer structure reasons
l
1 The system of the hierarchical structure is easy to evolve
Ø
Reverse example
: Mainframe -> C
Lient / server
l
2 Isolation of the underlying modification on the upper layer
l
3 Execute business logic in different trust domains
l
4 easy deployment
Ø
Deployment on a few servers is not all clients
l
5 extension flexible
-------------------------------------------------- --------
l
Serious service layer
Ø
MFC (C ) / VB6
Form
Ø
ASP
l
Business service layer
Ø
COM
l
Data service layer
Ø
ADO / ODBC / OLE DB
Ø
SQL Server
------------------------------------. NET to architecture --------------------------------
l
Serious service layer
Ø
WinForms
Ø
ASP.NET
l
Business service layer
Ø
Enterprise Services (COM )
Ø
.NET Remoting
/ Web Service
Ø
ASP.NET
l
Data service layer
Ø
ADO.NET
Ø
SQL Server