文件名称:3layerdatabase
- 所属分类:
- Windows编程
- 资源属性:
- [Windows] [Visual.Net] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 116kb
- 下载次数:
- 0次
- 提 供 者:
- 张**
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
3层架构是一种“客户端-服务器”架构,在此架构中用户接口,商业逻辑,数据保存以及数据访问被设计为独立的模块。主要有3个层面,第一层(表现层,GUI层),第二层(商业对象,商业逻辑层),第三层(数据访问层)。这些层可以单独开发,单独测试。
为什么要把程序代码分为3层。把用户接口层,商业逻辑层,数据访问层分离有许多的优点。
在快速开发中重用商业逻辑组件,我们已经在系统中实现添加,更新,删除,查找客户数据的组件。这个组件已经开发并且测试通过,我们可以在其他要保存客户数据的项目中使用这个组件。
系统比较容易迁移,商业逻辑层与数据访问层是分离的,修改数据访问层不会影响到商业逻辑层。系统如果从用SQL Server存储数据迁移到用Oracle存储数据,并不需要修改商业逻辑层组件和GUI组件
系统容易修改,假如在商业层有一个小小的修改,我们不需要在用户的机器上重装整个系统。我们只需要更新商业逻辑组件就可以了。
应用程序开发人员可以并行,独立的开发单独的层。-3layer database study
为什么要把程序代码分为3层。把用户接口层,商业逻辑层,数据访问层分离有许多的优点。
在快速开发中重用商业逻辑组件,我们已经在系统中实现添加,更新,删除,查找客户数据的组件。这个组件已经开发并且测试通过,我们可以在其他要保存客户数据的项目中使用这个组件。
系统比较容易迁移,商业逻辑层与数据访问层是分离的,修改数据访问层不会影响到商业逻辑层。系统如果从用SQL Server存储数据迁移到用Oracle存储数据,并不需要修改商业逻辑层组件和GUI组件
系统容易修改,假如在商业层有一个小小的修改,我们不需要在用户的机器上重装整个系统。我们只需要更新商业逻辑组件就可以了。
应用程序开发人员可以并行,独立的开发单独的层。-3layer database study
(系统自动生成,下载前可以参看下载内容)
下载文件列表
三层架构小例子\Backup\WindowsApplication3\App.config
..............\......\...................\BaseDAL.cs
..............\......\...................\bin\Debug\DBAffair.mdb
..............\......\...................\Class1.cs
..............\......\...................\Class2BLL.cs
..............\......\...................\Class2DAL.cs
..............\......\...................\db.cs
..............\......\...................\Form1.cs
..............\......\...................\Form1.Designer.cs
..............\......\...................\Form1.resx
..............\......\...................\Program.cs
..............\......\...................\...perties\AssemblyInfo.cs
..............\......\...................\..........\Resources.Designer.cs
..............\......\...................\..........\Resources.resx
..............\......\...................\..........\Settings.Designer.cs
..............\......\...................\..........\Settings.settings
..............\......\...................\RequestInfo.cs
..............\......\...................\WindowsApplication3.csproj
..............\......\...................\WindowsApplication3.csproj.user
..............\......\WindowsApplication3.sln
..............\......\WindowsApplication3.suo
..............\UpgradeLog.XML
..............\WindowsApplication3\App.config
..............\...................\BaseDAL.cs
..............\...................\bin\Debug\bin\Debug\DBAffair.mdb
..............\...................\...\.....\DBAffair.mdb
..............\...................\...\.....\WindowsApplication3.exe
..............\...................\...\.....\WindowsApplication3.exe.config
..............\...................\...\.....\WindowsApplication3.pdb
..............\...................\...\.....\WindowsApplication3.vshost.exe
..............\...................\...\.....\WindowsApplication3.vshost.exe.config
..............\...................\...\.....\WindowsApplication3.vshost.exe.manifest
..............\...................\Class1.cs
..............\...................\Class2BLL.cs
..............\...................\Class2DAL.cs
..............\...................\db.cs
..............\...................\Form1.cs
..............\...................\Form1.Designer.cs
..............\...................\Form1.resx
..............\...................\obj\Debug\TempPE\bin.Debug.DBAffairDataSet.Designer.cs.dll
..............\...................\...\.....\......\Properties.Resources.Designer.cs.dll
..............\...................\...\.....\WindowsApplication3.csproj.FileListAbsolute.txt
..............\...................\...\.....\WindowsApplication3.csproj.GenerateResource.Cache
..............\...................\...\.....\WindowsApplication3.exe
..............\...................\...\.....\WindowsApplication3.Form1.resources
..............\...................\...\.....\WindowsApplication3.pdb
..............\...................\...\.....\WindowsApplication3.Properties.Resources.resources
..............\...................\...\WindowsApplication3.csproj.FileList.txt
..............\...................\...\WindowsApplication3.csproj.FileListAbsolute.txt
..............\...................\Program.cs
..............\...................\...perties\AssemblyInfo.cs
..............\...................\..........\Resources.Designer.cs
..............\...................\..........\Resources.resx
..............\...................\..........\Settings.Designer.cs
..............\...................\..........\Settings.settings
..............\...................\RequestInfo.cs
..............\...................\WindowsApplication3.csproj
..............\...................\WindowsApplication3.csproj.user
..............\WindowsApplication3.sln
..............\WindowsApplication3.suo
..............\_UpgradeReport_Files\UpgradeReport.css
..............\....................\UpgradeReport.xslt
..............\....................\UpgradeReport_Minus.gif
..............\....................\UpgradeReport_Plus.gif
..............\WindowsApplication3\bin\Debug\bin\Debug
..............\Backup\WindowsApplication3\bin\Debug
......
..............\......\...................\BaseDAL.cs
..............\......\...................\bin\Debug\DBAffair.mdb
..............\......\...................\Class1.cs
..............\......\...................\Class2BLL.cs
..............\......\...................\Class2DAL.cs
..............\......\...................\db.cs
..............\......\...................\Form1.cs
..............\......\...................\Form1.Designer.cs
..............\......\...................\Form1.resx
..............\......\...................\Program.cs
..............\......\...................\...perties\AssemblyInfo.cs
..............\......\...................\..........\Resources.Designer.cs
..............\......\...................\..........\Resources.resx
..............\......\...................\..........\Settings.Designer.cs
..............\......\...................\..........\Settings.settings
..............\......\...................\RequestInfo.cs
..............\......\...................\WindowsApplication3.csproj
..............\......\...................\WindowsApplication3.csproj.user
..............\......\WindowsApplication3.sln
..............\......\WindowsApplication3.suo
..............\UpgradeLog.XML
..............\WindowsApplication3\App.config
..............\...................\BaseDAL.cs
..............\...................\bin\Debug\bin\Debug\DBAffair.mdb
..............\...................\...\.....\DBAffair.mdb
..............\...................\...\.....\WindowsApplication3.exe
..............\...................\...\.....\WindowsApplication3.exe.config
..............\...................\...\.....\WindowsApplication3.pdb
..............\...................\...\.....\WindowsApplication3.vshost.exe
..............\...................\...\.....\WindowsApplication3.vshost.exe.config
..............\...................\...\.....\WindowsApplication3.vshost.exe.manifest
..............\...................\Class1.cs
..............\...................\Class2BLL.cs
..............\...................\Class2DAL.cs
..............\...................\db.cs
..............\...................\Form1.cs
..............\...................\Form1.Designer.cs
..............\...................\Form1.resx
..............\...................\obj\Debug\TempPE\bin.Debug.DBAffairDataSet.Designer.cs.dll
..............\...................\...\.....\......\Properties.Resources.Designer.cs.dll
..............\...................\...\.....\WindowsApplication3.csproj.FileListAbsolute.txt
..............\...................\...\.....\WindowsApplication3.csproj.GenerateResource.Cache
..............\...................\...\.....\WindowsApplication3.exe
..............\...................\...\.....\WindowsApplication3.Form1.resources
..............\...................\...\.....\WindowsApplication3.pdb
..............\...................\...\.....\WindowsApplication3.Properties.Resources.resources
..............\...................\...\WindowsApplication3.csproj.FileList.txt
..............\...................\...\WindowsApplication3.csproj.FileListAbsolute.txt
..............\...................\Program.cs
..............\...................\...perties\AssemblyInfo.cs
..............\...................\..........\Resources.Designer.cs
..............\...................\..........\Resources.resx
..............\...................\..........\Settings.Designer.cs
..............\...................\..........\Settings.settings
..............\...................\RequestInfo.cs
..............\...................\WindowsApplication3.csproj
..............\...................\WindowsApplication3.csproj.user
..............\WindowsApplication3.sln
..............\WindowsApplication3.suo
..............\_UpgradeReport_Files\UpgradeReport.css
..............\....................\UpgradeReport.xslt
..............\....................\UpgradeReport_Minus.gif
..............\....................\UpgradeReport_Plus.gif
..............\WindowsApplication3\bin\Debug\bin\Debug
..............\Backup\WindowsApplication3\bin\Debug
......