文件名称:Justin20090531
- 所属分类:
- .net编程
- 资源属性:
- [Windows] [Visual.Net] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 585kb
- 下载次数:
- 0次
- 提 供 者:
- Justi*****
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
下载
别用迅雷、360浏览器下载。
如迅雷强制弹出,可右键点击选“另存为”。
失败请重下,重下不扣分。
如迅雷强制弹出,可右键点击选“另存为”。
失败请重下,重下不扣分。
介绍说明--下载内容均来自于网络,请自行研究使用
在VS2005.NET C#框架下,使用抽象工厂模式开发一个基于三层结构的数据库应用程序的登录部分,麻雀虽小,五脏俱全:
1程序运行后的主窗口有两个文本框和一个按钮,文本框分别用来输入用户名和密码,其中密码显示为*。按钮的文本是“登录”,功能是通过查询数据库判断当前用户名和密码是否正确,如果正确弹出“登录成功”对话框;如果失败弹出“登录失败”对话框。
2使用OOP的三层结构来实现。
3应用抽象工厂模式,使得该程序可以访问SQL数据库也可以访问ACCESS数据库,访问不同的数据库通过修改配置文件中的配置实现。
4登录数据库的用户名和密码均为sa。
-In the fr a mework of VS2005.NET C#, use the abstract factory pattern to develop a database of three-tier architecture based on the application log of the small but complete:
1 run after the main window has two text boxes and a button, text boxes were used to enter a user name and password, which password is displayed as*. Button text is "Login" function is to query the database to determine the adoption of the current user name and password are correct, if the right pop-up "login successful" dialog box if the failure of the pop-up "login failed" dialog box.
2 use OOP to achieve the three-tier structure.
3 the application of the abstract factory pattern, making the program can access the SQL database can also visit the ACCESS database, access to different database configuration file by modifying the configuration of the realization.
4 registry database user name and password are sa.
1程序运行后的主窗口有两个文本框和一个按钮,文本框分别用来输入用户名和密码,其中密码显示为*。按钮的文本是“登录”,功能是通过查询数据库判断当前用户名和密码是否正确,如果正确弹出“登录成功”对话框;如果失败弹出“登录失败”对话框。
2使用OOP的三层结构来实现。
3应用抽象工厂模式,使得该程序可以访问SQL数据库也可以访问ACCESS数据库,访问不同的数据库通过修改配置文件中的配置实现。
4登录数据库的用户名和密码均为sa。
-In the fr a mework of VS2005.NET C#, use the abstract factory pattern to develop a database of three-tier architecture based on the application log of the small but complete:
1 run after the main window has two text boxes and a button, text boxes were used to enter a user name and password, which password is displayed as*. Button text is "Login" function is to query the database to determine the adoption of the current user name and password are correct, if the right pop-up "login successful" dialog box if the failure of the pop-up "login failed" dialog box.
2 use OOP to achieve the three-tier structure.
3 the application of the abstract factory pattern, making the program can access the SQL database can also visit the ACCESS database, access to different database configuration file by modifying the configuration of the realization.
4 registry database user name and password are sa.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Test
....\Test
....\....\App.config
....\....\bin
....\....\...\Debug
....\....\...\.....\Test.BLL.dll
....\....\...\.....\Test.BLL.pdb
....\....\...\.....\Test.DAL.dll
....\....\...\.....\Test.DAL.pdb
....\....\...\.....\Test.DALFactory.dll
....\....\...\.....\Test.DALFactory.pdb
....\....\...\.....\Test.exe
....\....\...\.....\Test.exe.config
....\....\...\.....\Test.IDAL.dll
....\....\...\.....\Test.IDAL.pdb
....\....\...\.....\Test.Models.dll
....\....\...\.....\Test.Models.pdb
....\....\...\.....\Test.pdb
....\....\...\.....\Test.vshost.exe
....\....\...\.....\Test.vshost.exe.config
....\....\LoginForm.cs
....\....\LoginForm.Designer.cs
....\....\LoginForm.resx
....\....\obj
....\....\...\Debug
....\....\...\.....\Refactor
....\....\...\.....\ResolveAssemblyReference.cache
....\....\...\.....\TempPE
....\....\...\.....\......\Properties.Resources.Designer.cs.dll
....\....\...\.....\Test.csproj.GenerateResource.Cache
....\....\...\.....\Test.exe
....\....\...\.....\Test.LoginForm.resources
....\....\...\.....\Test.pdb
....\....\...\.....\Test.Properties.Resources.resources
....\....\...\Test.csproj.FileList.txt
....\....\Program.cs
....\....\Properties
....\....\..........\AssemblyInfo.cs
....\....\..........\Resources.Designer.cs
....\....\..........\Resources.resx
....\....\..........\Settings.Designer.cs
....\....\..........\Settings.settings
....\....\Resourse
....\....\Test.csproj
....\Test.sln
....\TestBLL
....\.......\bin
....\.......\...\Debug
....\.......\...\.....\Test.BLL.dll
....\.......\...\.....\Test.BLL.pdb
....\.......\...\.....\Test.DAL.dll
....\.......\...\.....\Test.DAL.pdb
....\.......\...\.....\Test.DALFactory.dll
....\.......\...\.....\Test.DALFactory.pdb
....\.......\...\.....\Test.IDAL.dll
....\.......\...\.....\Test.IDAL.pdb
....\.......\...\.....\Test.Models.dll
....\.......\...\.....\Test.Models.pdb
....\.......\obj
....\.......\...\Debug
....\.......\...\.....\Refactor
....\.......\...\.....\........\Test.BLL.dll
....\.......\...\.....\ResolveAssemblyReference.cache
....\.......\...\.....\TempPE
....\.......\...\.....\Test.BLL.dll
....\.......\...\.....\Test.BLL.pdb
....\.......\...\TestBLL.csproj.FileList.txt
....\.......\Properties
....\.......\..........\AssemblyInfo.cs
....\.......\TestBLL.csproj
....\.......\UsersManager.cs
....\TestDAL
....\.......\Access
....\.......\......\UsersService.cs
....\.......\bin
....\.......\...\Debug
....\.......\...\.....\Test.DAL.dll
....\.......\...\.....\Test.DAL.pdb
....\.......\...\.....\Test.IDAL.dll
....\.......\...\.....\Test.IDAL.pdb
....\.......\...\.....\Test.Models.dll
....\.......\...\.....\Test.Models.pdb
....\.......\obj
....\.......\...\Debug
....\.......\...\.....\Refactor
....\.......\...\.....\........\Test.DAL.dll
....\.......\...\.....\ResolveAssemblyReference.cache
....\.......\...\.....\TempPE
....\.......\...\.....\Test.DAL.dll
....\.......\...\.....\Test.DAL.pdb
....\.......\...\TestDAL.csproj.FileList.txt
....\.......\Properties
....\.......\..........\AssemblyInfo.cs
....\.......\SqlServer
....\.......\.........\UsersService.cs
....\.......\TestDAL.csproj
....\TestDALFactory
....\..............\AbstractDALFactory.cs
....\Test
....\....\App.config
....\....\bin
....\....\...\Debug
....\....\...\.....\Test.BLL.dll
....\....\...\.....\Test.BLL.pdb
....\....\...\.....\Test.DAL.dll
....\....\...\.....\Test.DAL.pdb
....\....\...\.....\Test.DALFactory.dll
....\....\...\.....\Test.DALFactory.pdb
....\....\...\.....\Test.exe
....\....\...\.....\Test.exe.config
....\....\...\.....\Test.IDAL.dll
....\....\...\.....\Test.IDAL.pdb
....\....\...\.....\Test.Models.dll
....\....\...\.....\Test.Models.pdb
....\....\...\.....\Test.pdb
....\....\...\.....\Test.vshost.exe
....\....\...\.....\Test.vshost.exe.config
....\....\LoginForm.cs
....\....\LoginForm.Designer.cs
....\....\LoginForm.resx
....\....\obj
....\....\...\Debug
....\....\...\.....\Refactor
....\....\...\.....\ResolveAssemblyReference.cache
....\....\...\.....\TempPE
....\....\...\.....\......\Properties.Resources.Designer.cs.dll
....\....\...\.....\Test.csproj.GenerateResource.Cache
....\....\...\.....\Test.exe
....\....\...\.....\Test.LoginForm.resources
....\....\...\.....\Test.pdb
....\....\...\.....\Test.Properties.Resources.resources
....\....\...\Test.csproj.FileList.txt
....\....\Program.cs
....\....\Properties
....\....\..........\AssemblyInfo.cs
....\....\..........\Resources.Designer.cs
....\....\..........\Resources.resx
....\....\..........\Settings.Designer.cs
....\....\..........\Settings.settings
....\....\Resourse
....\....\Test.csproj
....\Test.sln
....\TestBLL
....\.......\bin
....\.......\...\Debug
....\.......\...\.....\Test.BLL.dll
....\.......\...\.....\Test.BLL.pdb
....\.......\...\.....\Test.DAL.dll
....\.......\...\.....\Test.DAL.pdb
....\.......\...\.....\Test.DALFactory.dll
....\.......\...\.....\Test.DALFactory.pdb
....\.......\...\.....\Test.IDAL.dll
....\.......\...\.....\Test.IDAL.pdb
....\.......\...\.....\Test.Models.dll
....\.......\...\.....\Test.Models.pdb
....\.......\obj
....\.......\...\Debug
....\.......\...\.....\Refactor
....\.......\...\.....\........\Test.BLL.dll
....\.......\...\.....\ResolveAssemblyReference.cache
....\.......\...\.....\TempPE
....\.......\...\.....\Test.BLL.dll
....\.......\...\.....\Test.BLL.pdb
....\.......\...\TestBLL.csproj.FileList.txt
....\.......\Properties
....\.......\..........\AssemblyInfo.cs
....\.......\TestBLL.csproj
....\.......\UsersManager.cs
....\TestDAL
....\.......\Access
....\.......\......\UsersService.cs
....\.......\bin
....\.......\...\Debug
....\.......\...\.....\Test.DAL.dll
....\.......\...\.....\Test.DAL.pdb
....\.......\...\.....\Test.IDAL.dll
....\.......\...\.....\Test.IDAL.pdb
....\.......\...\.....\Test.Models.dll
....\.......\...\.....\Test.Models.pdb
....\.......\obj
....\.......\...\Debug
....\.......\...\.....\Refactor
....\.......\...\.....\........\Test.DAL.dll
....\.......\...\.....\ResolveAssemblyReference.cache
....\.......\...\.....\TempPE
....\.......\...\.....\Test.DAL.dll
....\.......\...\.....\Test.DAL.pdb
....\.......\...\TestDAL.csproj.FileList.txt
....\.......\Properties
....\.......\..........\AssemblyInfo.cs
....\.......\SqlServer
....\.......\.........\UsersService.cs
....\.......\TestDAL.csproj
....\TestDALFactory
....\..............\AbstractDALFactory.cs