c# winform 三层架构源代码

上传者: huchengwang6 | 上传时间: 2021-09-15 13:42:54 | 文件大小: 242KB | 文件类型: RAR
C# WinForm简单三层框架源码共享。 本框架采用三层架构实现,大家可直接在上面扩展,进行自己系统的二次开发等。 框架中数据库字符串的配置在根目录的DBCfg.xml文件中,该文件中部分内容已经加密, 文件中有两个数据库的字符串,实际过程中只用一个即可(案例中是我自己的项目的需求) 系统框架简介: 采用广为人知的简单三层DAL(DBUtility),BLL,UI层实现,习惯开发web的朋友一看就明白了 框架默认提供很多方法,如需添加新的操作表,只需要新建一个类,拷贝下基本的代码即可 同时提供数据库字符串修改窗体,方便您的修改。 运行本框架需要创建一张表 sql如下: CREATE TABLE [dbo].[Infos]( [Iid] [int] IDENTITY(1,1) NOT NULL, [title] [varchar](255) COLLATE Chinese_PRC_CI_AS NULL, [details] [text] COLLATE Chinese_PRC_CI_AS NULL, [imgs] [varchar](5000) COLLATE Chinese_PRC_CI_AS NULL, [classify] [varchar](50) COLLATE Chinese_PRC_CI_AS NULL, [publiship] [varchar](30) COLLATE Chinese_PRC_CI_AS NULL, [publishman] [varchar](20) COLLATE Chinese_PRC_CI_AS NULL, [publishtime] [datetime] NULL, [isshow] [varchar](4) COLLATE Chinese_PRC_CI_AS NULL, [istop] [varchar](4) COLLATE Chinese_PRC_CI_AS NULL, [hits] [int] NULL, [notes] [varchar](255) COLLATE Chinese_PRC_CI_AS NULL, CONSTRAINT [PK_Infos] PRIMARY KEY CLUSTERED ( [Iid] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]

文件下载

资源详情

[{"title":"( 84 个子文件 242KB ) c# winform 三层架构源代码","children":[{"title":"WinFormDeveloper","children":[{"title":"BLL","children":[{"title":"BLL.csproj <span style='color:#111;'> 2.85KB </span>","children":null,"spread":false},{"title":"infosBLL.cs <span style='color:#111;'> 2.92KB </span>","children":null,"spread":false},{"title":"Properties","children":[{"title":"AssemblyInfo.cs <span style='color:#111;'> 1.32KB </span>","children":null,"spread":false}],"spread":true},{"title":"obj","children":[{"title":"Debug","children":[{"title":"BLL.pdb <span style='color:#111;'> 13.50KB </span>","children":null,"spread":false},{"title":"ResolveAssemblyReference.cache <span style='color:#111;'> 8.14KB </span>","children":null,"spread":false},{"title":"TempPE","children":null,"spread":false},{"title":"BLL.csproj.FileListAbsolute.txt <span style='color:#111;'> 842B </span>","children":null,"spread":false},{"title":"BLL.dll <span style='color:#111;'> 4.50KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"bin","children":[{"title":"Debug","children":[{"title":"BLL.pdb <span style='color:#111;'> 13.50KB </span>","children":null,"spread":false},{"title":"Model.dll <span style='color:#111;'> 5.50KB </span>","children":null,"spread":false},{"title":"DAL.pdb <span style='color:#111;'> 15.50KB </span>","children":null,"spread":false},{"title":"DAL.dll <span style='color:#111;'> 5.00KB </span>","children":null,"spread":false},{"title":"DBUtility.pdb <span style='color:#111;'> 55.50KB </span>","children":null,"spread":false},{"title":"Model.pdb <span style='color:#111;'> 19.50KB </span>","children":null,"spread":false},{"title":"BLL.dll <span style='color:#111;'> 4.50KB </span>","children":null,"spread":false},{"title":"DBUtility.dll <span style='color:#111;'> 21.00KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"WindowsFormCase","children":[{"title":"Form1.cs <span style='color:#111;'> 1.32KB </span>","children":null,"spread":false},{"title":"Program.cs <span style='color:#111;'> 496B </span>","children":null,"spread":false},{"title":"WindowsFormCase.csproj <span style='color:#111;'> 4.91KB </span>","children":null,"spread":false},{"title":"Form1.resx <span style='color:#111;'> 6.03KB </span>","children":null,"spread":false},{"title":"DBConfig.cs <span style='color:#111;'> 3.08KB </span>","children":null,"spread":false},{"title":"Properties","children":[{"title":"Settings.settings <span style='color:#111;'> 249B </span>","children":null,"spread":false},{"title":"Resources.Designer.cs <span style='color:#111;'> 2.81KB </span>","children":null,"spread":false},{"title":"AssemblyInfo.cs <span style='color:#111;'> 1.35KB </span>","children":null,"spread":false},{"title":"Settings.Designer.cs <span style='color:#111;'> 1.07KB </span>","children":null,"spread":false},{"title":"Resources.resx <span style='color:#111;'> 5.48KB </span>","children":null,"spread":false}],"spread":true},{"title":"DBConfig.resx <span style='color:#111;'> 10.55KB </span>","children":null,"spread":false},{"title":"Form1.Designer.cs <span style='color:#111;'> 6.44KB </span>","children":null,"spread":false},{"title":"obj","children":[{"title":"Debug","children":[{"title":"WindowsFormCase.csproj.GenerateResource.Cache <span style='color:#111;'> 908B </span>","children":null,"spread":false},{"title":"WindowsFormCase.exe <span style='color:#111;'> 17.50KB </span>","children":null,"spread":false},{"title":"WindowsFormCase.csproj.FileListAbsolute.txt <span style='color:#111;'> 1.71KB </span>","children":null,"spread":false},{"title":"Refactor","children":null,"spread":false},{"title":"WindowsFormCase.pdb <span style='color:#111;'> 33.50KB </span>","children":null,"spread":false},{"title":"ResolveAssemblyReference.cache <span style='color:#111;'> 21.22KB </span>","children":null,"spread":false},{"title":"TempPE","children":null,"spread":false},{"title":"WindowsFormCase.DBConfig.resources <span style='color:#111;'> 3.61KB </span>","children":null,"spread":false},{"title":"WindowsFormCase.Properties.Resources.resources <span style='color:#111;'> 180B </span>","children":null,"spread":false},{"title":"WindowsFormCase.Form1.resources <span style='color:#111;'> 180B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"DBConfig.Designer.cs <span style='color:#111;'> 7.02KB </span>","children":null,"spread":false},{"title":"bin","children":[{"title":"Debug","children":[{"title":"BLL.pdb <span style='color:#111;'> 13.50KB </span>","children":null,"spread":false},{"title":"Model.dll <span style='color:#111;'> 5.50KB </span>","children":null,"spread":false},{"title":"WindowsFormCase.vshost.exe.manifest <span style='color:#111;'> 490B </span>","children":null,"spread":false},{"title":"WindowsFormCase.vshost.exe <span style='color:#111;'> 13.99KB </span>","children":null,"spread":false},{"title":"WindowsFormCase.exe <span style='color:#111;'> 17.50KB </span>","children":null,"spread":false},{"title":"WindowsFormCase.pdb <span style='color:#111;'> 33.50KB </span>","children":null,"spread":false},{"title":"DAL.pdb <span style='color:#111;'> 15.50KB </span>","children":null,"spread":false},{"title":"DBCfg.xml <span style='color:#111;'> 489B </span>","children":null,"spread":false},{"title":"DAL.dll <span style='color:#111;'> 5.00KB </span>","children":null,"spread":false},{"title":"DBUtility.pdb <span style='color:#111;'> 55.50KB </span>","children":null,"spread":false},{"title":"Model.pdb <span style='color:#111;'> 19.50KB </span>","children":null,"spread":false},{"title":"BLL.dll <span style='color:#111;'> 4.50KB </span>","children":null,"spread":false},{"title":"CJ_DBOperater.dll <span style='color:#111;'> 8.00KB </span>","children":null,"spread":false},{"title":"DBUtility.dll <span style='color:#111;'> 21.00KB </span>","children":null,"spread":false}],"spread":false}],"spread":true}],"spread":false},{"title":"WinFormDeveloper.sln <span style='color:#111;'> 3.52KB </span>","children":null,"spread":false},{"title":"Model","children":[{"title":"Properties","children":[{"title":"AssemblyInfo.cs <span style='color:#111;'> 1.32KB </span>","children":null,"spread":false}],"spread":true},{"title":"obj","children":[{"title":"Debug","children":[{"title":"Model.dll <span style='color:#111;'> 5.50KB </span>","children":null,"spread":false},{"title":"TempPE","children":null,"spread":false},{"title":"Model.csproj.FileListAbsolute.txt <span style='color:#111;'> 406B </span>","children":null,"spread":false},{"title":"Model.pdb <span style='color:#111;'> 19.50KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"Model.csproj <span style='color:#111;'> 2.43KB </span>","children":null,"spread":false},{"title":"infos.cs <span style='color:#111;'> 3.11KB </span>","children":null,"spread":false},{"title":"bin","children":[{"title":"Debug","children":[{"title":"Model.dll <span style='color:#111;'> 5.50KB </span>","children":null,"spread":false},{"title":"Model.pdb <span style='color:#111;'> 19.50KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"DBUtility","children":[{"title":"DBUtility.csproj <span style='color:#111;'> 2.56KB </span>","children":null,"spread":false},{"title":"Properties","children":[{"title":"AssemblyInfo.cs <span style='color:#111;'> 1.33KB </span>","children":null,"spread":false}],"spread":true},{"title":"PubConstant.cs <span style='color:#111;'> 901B </span>","children":null,"spread":false},{"title":"DbHelperSQL.cs <span style='color:#111;'> 41.93KB </span>","children":null,"spread":false},{"title":"CommandInfo.cs <span style='color:#111;'> 2.24KB </span>","children":null,"spread":false},{"title":"obj","children":[{"title":"Debug","children":[{"title":"Refactor","children":null,"spread":false},{"title":"TempPE","children":null,"spread":false},{"title":"DBUtility.csproj.FileListAbsolute.txt <span style='color:#111;'> 442B </span>","children":null,"spread":false},{"title":"DBUtility.pdb <span style='color:#111;'> 55.50KB </span>","children":null,"spread":false},{"title":"DBUtility.dll <span style='color:#111;'> 21.00KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"bin","children":[{"title":"Debug","children":[{"title":"DBUtility.pdb <span style='color:#111;'> 55.50KB </span>","children":null,"spread":false},{"title":"DBUtility.dll <span style='color:#111;'> 21.00KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"Common.cs <span style='color:#111;'> 6.51KB </span>","children":null,"spread":false}],"spread":true},{"title":"DAL","children":[{"title":"DAL.csproj <span style='color:#111;'> 2.86KB </span>","children":null,"spread":false},{"title":"Properties","children":[{"title":"AssemblyInfo.cs <span style='color:#111;'> 1.32KB </span>","children":null,"spread":false}],"spread":true},{"title":"obj","children":[{"title":"Debug","children":[{"title":"Refactor","children":null,"spread":false},{"title":"ResolveAssemblyReference.cache <span style='color:#111;'> 5.36KB </span>","children":null,"spread":false},{"title":"DAL.pdb <span style='color:#111;'> 15.50KB </span>","children":null,"spread":false},{"title":"TempPE","children":null,"spread":false},{"title":"DAL.csproj.FileListAbsolute.txt <span style='color:#111;'> 696B </span>","children":null,"spread":false},{"title":"DAL.dll <span style='color:#111;'> 5.00KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"bin","children":[{"title":"Debug","children":[{"title":"Model.dll <span style='color:#111;'> 5.50KB </span>","children":null,"spread":false},{"title":"DAL.pdb <span style='color:#111;'> 15.50KB </span>","children":null,"spread":false},{"title":"DAL.dll <span style='color:#111;'> 5.00KB </span>","children":null,"spread":false},{"title":"DBUtility.pdb <span style='color:#111;'> 55.50KB </span>","children":null,"spread":false},{"title":"Model.pdb <span style='color:#111;'> 19.50KB </span>","children":null,"spread":false},{"title":"DBUtility.dll <span style='color:#111;'> 21.00KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"infosDAL.cs <span style='color:#111;'> 3.52KB </span>","children":null,"spread":false}],"spread":true},{"title":"WinFormDeveloper.suo <span style='color:#111;'> 42.00KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

  • oceanix :
    结构清晰,比较简单,期待更复杂的MVC例子
    2019-10-11
  • newbitions :
    可以参考一下,拉出来可以做做小项目。
    2018-09-26
  • longerhe :
    架构还可以,但是工作量太大。
    2018-03-29
  • wowdc :
    还是有点用的。有些地方需要修改
    2018-03-29
  • andyacc21 :
    谢谢,可以为小项目做扩展
    2017-03-15

免责申明

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