工厂模式三层架构增删改查分页(BLL层使用事务)源码

上传者: fegus | 上传时间: 2023-02-28 10:59:00 | 文件大小: 4.95MB | 文件类型: ZIP
本软件是一个工厂模式三层架构例子程序(★特点与难点是在BLL层使用数据库事务,而不在DAL层使用数据库事务)。程序通过WinForm应用程序实现Sql Server 2005,Sqlite 3的增、删、改、查,分页功能。是学习三层架构、工厂模式,操作Sql Server和Sqlite数据库的极佳学习例子。本源码是我开发一个10万行代码软件时使用的架构的进化升级版,使用此架构,可以开发复杂的(操作数据库)WinForm或WebForm程序,相信您在学习这个例子程序的时候,能学到很多项目开发经验,包括接口操作、文件组织、编码规范、多数据库、代码重用等等。 【为什么要在BLL层使用数据库事务?】 1.由于某些业务逻辑较复杂,需要对数据库多表进行操作,为保证关联数据的完整性,需要使用数据库事务。 2.为了实现应用系统(业务逻辑)一次编写即可支持多种数据库,需要使用工厂模式实现多数据库支持。 3.一般情况,我们可以在DAL层使用数据库事务,但较多的业务逻辑放在DAL层,使得BLL层和DAL层职责不清,不利于统一在BLL层编写业务逻辑

文件下载

资源详情

[{"title":"( 261 个子文件 4.95MB ) 工厂模式三层架构增删改查分页(BLL层使用事务)源码","children":[{"title":"DotNet.Model.pdb <span style='color:#111;'> 15.50KB </span>","children":null,"spread":false},{"title":"ChnCharInfo.dll <span style='color:#111;'> 381.08KB </span>","children":null,"spread":false},{"title":"DotNet.Model.dll <span style='color:#111;'> 5.00KB </span>","children":null,"spread":false},{"title":"DotNet.DALFactory.pdb <span style='color:#111;'> 15.50KB </span>","children":null,"spread":false},{"title":"DotNet.Common.pdb <span style='color:#111;'> 39.50KB </span>","children":null,"spread":false},{"title":"DotNet.BLL.dll <span style='color:#111;'> 5.50KB </span>","children":null,"spread":false},{"title":"DotNet.BLL.pdb <span style='color:#111;'> 15.50KB </span>","children":null,"spread":false},{"title":"DotNet.DALFactory.dll <span style='color:#111;'> 5.00KB </span>","children":null,"spread":false},{"title":"DotNet.Common.dll <span style='color:#111;'> 14.00KB </span>","children":null,"spread":false},{"title":"NT_Info.cs <span style='color:#111;'> 7.91KB </span>","children":null,"spread":false},{"title":"DUF.BLL.csprojResolveAssemblyReference.cache <span style='color:#111;'> 13.98KB </span>","children":null,"spread":false},{"title":"DUF.BLL.dll <span style='color:#111;'> 5.50KB </span>","children":null,"spread":false},{"title":"DotNet.BLL.csproj.FileListAbsolute.txt <span style='color:#111;'> 3.47KB </span>","children":null,"spread":false},{"title":"DesignTimeResolveAssemblyReferencesInput.cache <span style='color:#111;'> 5.59KB </span>","children":null,"spread":false},{"title":"DUF.BLL.csproj.FileListAbsolute.txt <span style='color:#111;'> 7.72KB </span>","children":null,"spread":false},{"title":"DotNet.BLL.csprojResolveAssemblyReference.cache <span style='color:#111;'> 14.11KB </span>","children":null,"spread":false},{"title":"DotNet.BLL.dll <span style='color:#111;'> 5.50KB </span>","children":null,"spread":false},{"title":"DotNet.BLL.pdb <span style='color:#111;'> 15.50KB </span>","children":null,"spread":false},{"title":"DUF.BLL.pdb <span style='color:#111;'> 15.50KB </span>","children":null,"spread":false},{"title":"DotNet.BLL.csproj <span style='color:#111;'> 5.53KB </span>","children":null,"spread":false},{"title":"StaticInstanse.cs <span style='color:#111;'> 271B </span>","children":null,"spread":false},{"title":"AssemblyInfo.cs <span style='color:#111;'> 1.33KB </span>","children":null,"spread":false},{"title":"Hardware.cs <span style='color:#111;'> 5.65KB </span>","children":null,"spread":false},{"title":"Interop.Shell32.dll <span style='color:#111;'> 48.00KB </span>","children":null,"spread":false},{"title":"ChnCharInfo.dll <span style='color:#111;'> 381.08KB </span>","children":null,"spread":false},{"title":"DotNet.Common.pdb <span style='color:#111;'> 39.50KB </span>","children":null,"spread":false},{"title":"DotNet.Common.dll <span style='color:#111;'> 14.00KB </span>","children":null,"spread":false},{"title":"Comm.cs <span style='color:#111;'> 21.86KB </span>","children":null,"spread":false},{"title":"RegHelp.cs <span style='color:#111;'> 4.63KB </span>","children":null,"spread":false},{"title":"DUF.Common.csprojResolveAssemblyReference.cache <span style='color:#111;'> 6.49KB </span>","children":null,"spread":false},{"title":"DUF.Common.csproj.FileListAbsolute.txt <span style='color:#111;'> 3.05KB </span>","children":null,"spread":false},{"title":"DesignTimeResolveAssemblyReferencesInput.cache <span style='color:#111;'> 5.41KB </span>","children":null,"spread":false},{"title":"DotNet.Common.pdb <span style='color:#111;'> 39.50KB </span>","children":null,"spread":false},{"title":"DotNet.Common.csproj.FileListAbsolute.txt <span style='color:#111;'> 1.30KB </span>","children":null,"spread":false},{"title":"DotNet.Common.dll <span style='color:#111;'> 14.00KB </span>","children":null,"spread":false},{"title":"Hash.cs <span style='color:#111;'> 1.58KB </span>","children":null,"spread":false},{"title":"AES.cs <span style='color:#111;'> 3.42KB </span>","children":null,"spread":false},{"title":"CommonWeb.cs <span style='color:#111;'> 11.98KB </span>","children":null,"spread":false},{"title":"RandomString.cs <span style='color:#111;'> 6.74KB </span>","children":null,"spread":false},{"title":"RandFactory.cs <span style='color:#111;'> 4.44KB </span>","children":null,"spread":false},{"title":"DotNet.Common.csproj <span style='color:#111;'> 5.31KB </span>","children":null,"spread":false},{"title":"Media.cs <span style='color:#111;'> 1.81KB </span>","children":null,"spread":false},{"title":"ListItem.cs <span style='color:#111;'> 1.34KB </span>","children":null,"spread":false},{"title":"FileValidate.cs <span style='color:#111;'> 1.82KB </span>","children":null,"spread":false},{"title":"FileOperate.cs <span style='color:#111;'> 20.39KB </span>","children":null,"spread":false},{"title":"AssemblyInfo.cs <span style='color:#111;'> 1.34KB </span>","children":null,"spread":false},{"title":"DefaultClass.cs <span style='color:#111;'> 553B </span>","children":null,"spread":false},{"title":"DotNet.UI.csproj <span style='color:#111;'> 10.09KB </span>","children":null,"spread":false},{"title":"DotNet.XmlHelper.pdb <span style='color:#111;'> 19.50KB </span>","children":null,"spread":false},{"title":"DotNet.Pager.dll <span style='color:#111;'> 180.00KB </span>","children":null,"spread":false},{"title":"DotNet.XmlHelper.dll <span style='color:#111;'> 7.50KB </span>","children":null,"spread":false},{"title":"System.Data.SQLite.dll <span style='color:#111;'> 968.00KB </span>","children":null,"spread":false},{"title":"DotNet.DALSQLServer.dll <span style='color:#111;'> 23.50KB </span>","children":null,"spread":false},{"title":"SqliteDbUtilsFactory.db3 <span style='color:#111;'> 8.00KB </span>","children":null,"spread":false},{"title":"DotNet.Model.pdb <span style='color:#111;'> 15.50KB </span>","children":null,"spread":false},{"title":"DotNet.DALSQLite.dll <span style='color:#111;'> 21.50KB </span>","children":null,"spread":false},{"title":"DotNet.DALSQLServer.pdb <span style='color:#111;'> 57.50KB </span>","children":null,"spread":false},{"title":"ChnCharInfo.dll <span style='color:#111;'> 381.08KB </span>","children":null,"spread":false},{"title":"DotNet.Model.dll <span style='color:#111;'> 5.00KB </span>","children":null,"spread":false},{"title":"DotNet.UI.pdb <span style='color:#111;'> 47.50KB </span>","children":null,"spread":false},{"title":"DotNet.DALFactory.pdb <span style='color:#111;'> 15.50KB </span>","children":null,"spread":false},{"title":"DotNet.Common.pdb <span style='color:#111;'> 39.50KB </span>","children":null,"spread":false},{"title":"DotNet.BLL.dll <span style='color:#111;'> 5.50KB </span>","children":null,"spread":false},{"title":"DotNet.UI.vshost.exe.config <span style='color:#111;'> 457B </span>","children":null,"spread":false},{"title":"DotNet.BLL.pdb <span style='color:#111;'> 15.50KB </span>","children":null,"spread":false},{"title":"DotNet.DALSQLite.pdb <span style='color:#111;'> 53.50KB </span>","children":null,"spread":false},{"title":"DotNet.Pager.pdb <span style='color:#111;'> 25.50KB </span>","children":null,"spread":false},{"title":"DotNet.UI.exe.config <span style='color:#111;'> 457B </span>","children":null,"spread":false},{"title":"DotNet.UI.vshost.exe <span style='color:#111;'> 11.34KB </span>","children":null,"spread":false},{"title":"DotNet.DALFactory.dll <span style='color:#111;'> 5.00KB </span>","children":null,"spread":false},{"title":"DotNet.Common.dll <span style='color:#111;'> 14.00KB </span>","children":null,"spread":false},{"title":"DotNet.UI.exe <span style='color:#111;'> 93.50KB </span>","children":null,"spread":false},{"title":"Form1.Designer.cs <span style='color:#111;'> 17.27KB </span>","children":null,"spread":false},{"title":"Program.cs <span style='color:#111;'> 4.47KB </span>","children":null,"spread":false},{"title":"DUF.UI.csproj.FileListAbsolute.txt <span style='color:#111;'> 17.78KB </span>","children":null,"spread":false},{"title":"DUF.WinForm.pdb <span style='color:#111;'> 57.50KB </span>","children":null,"spread":false},{"title":"DUF.UI.Form1.resources <span style='color:#111;'> 66.61KB </span>","children":null,"spread":false},{"title":"DotNet.UI.csproj.FileListAbsolute.txt <span style='color:#111;'> 7.87KB </span>","children":null,"spread":false},{"title":"DotNet.UI.csprojResolveAssemblyReference.cache <span style='color:#111;'> 39.19KB </span>","children":null,"spread":false},{"title":"DUF.WinForm.csproj.FileListAbsolute.txt <span style='color:#111;'> 5.23KB </span>","children":null,"spread":false},{"title":"TelegramsHandlingSystem.exe <span style='color:#111;'> 102.50KB </span>","children":null,"spread":false},{"title":"DUF.WinForm.Form1.resources <span style='color:#111;'> 66.61KB </span>","children":null,"spread":false},{"title":"DUF.WinForm.csproj.GenerateResource.Cache <span style='color:#111;'> 1.10KB </span>","children":null,"spread":false},{"title":"DesignTimeResolveAssemblyReferencesInput.cache <span style='color:#111;'> 6.68KB </span>","children":null,"spread":false},{"title":"DUF.WinForm.csprojResolveAssemblyReference.cache <span style='color:#111;'> 42.27KB </span>","children":null,"spread":false},{"title":"DUF.UI.csproj.GenerateResource.Cache <span style='color:#111;'> 1003B </span>","children":null,"spread":false},{"title":"DesignTimeResolveAssemblyReferences.cache <span style='color:#111;'> 115.15KB </span>","children":null,"spread":false},{"title":"Properties.Resources.Designer.cs.dll <span style='color:#111;'> 5.00KB </span>","children":null,"spread":false},{"title":"DotNet.UI.csproj.GenerateResource.Cache <span style='color:#111;'> 1003B </span>","children":null,"spread":false},{"title":"DUF.UI.csprojResolveAssemblyReference.cache <span style='color:#111;'> 38.84KB </span>","children":null,"spread":false},{"title":"DotNet.UI.pdb <span style='color:#111;'> 47.50KB </span>","children":null,"spread":false},{"title":"DotNet.UI.Form1.resources <span style='color:#111;'> 66.61KB </span>","children":null,"spread":false},{"title":"DUF.WinForm.exe <span style='color:#111;'> 95.50KB </span>","children":null,"spread":false},{"title":"DotNet.UI.Properties.Resources.resources <span style='color:#111;'> 2.29KB </span>","children":null,"spread":false},{"title":"DUF.WinForm.csproj.ResolveComReference.cache <span style='color:#111;'> 739B </span>","children":null,"spread":false},{"title":"DotNet.UI.exe <span style='color:#111;'> 93.50KB </span>","children":null,"spread":false},{"title":"DUF.WinForm.Properties.Resources.resources <span style='color:#111;'> 2.32KB </span>","children":null,"spread":false},{"title":"BaseFormEnum.cs <span style='color:#111;'> 725B </span>","children":null,"spread":false},{"title":"AES.cs <span style='color:#111;'> 3.42KB </span>","children":null,"spread":false},{"title":"BaseForm.cs <span style='color:#111;'> 7.87KB </span>","children":null,"spread":false},{"title":"......","children":null,"spread":false},{"title":"<span style='color:steelblue;'>文件过多,未全部展示</span>","children":null,"spread":false}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明