Architechture(examplex by GuestBook module[VB Version] ):
1、Data Access Layer
include sqlDataProvider.vb,DataProvider.vb
2、Business logic Layer
include GuestBookController.vb
include GuestBookInfo.vb
3、PresentationLayer
include ViewGuestBook.ascx others in DesktopModules/GuestBook
一、To Build the Data Access Layer we will:
- Create the Table
- Create the sotred procedures
- Alter the sqlDataProvider.vb, put the code that call the stored procedures in the SqlDataProvider.vb
- Alter the DataProvider.vb , put the methods (that are overiden by the SqlDataProvider.vb ) into DataProvider.vb
二、To build the Business logic
- Alter "GuestBookInfo.vb"
- Alter "GuestBookController.vb"
三、To build the Presentation layer
- Alter the localization(.recx)files
- Alter "controls and their code behind files
- EditGuestBook.ascx
- Settings.ascx
- ViewGuestBook.ascx
版权声明:本文为博主原创文章,未经博主允许不得转载。