惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Simon Willison's Weblog
Simon Willison's Weblog
Help Net Security
Help Net Security
P
Privacy International News Feed
T
Threat Research - Cisco Blogs
C
Cisco Blogs
C
CERT Recently Published Vulnerability Notes
NISL@THU
NISL@THU
L
LINUX DO - 热门话题
Security Latest
Security Latest
A
Arctic Wolf
G
GRAHAM CLULEY
月光博客
月光博客
S
Securelist
D
Docker
J
Java Code Geeks
T
Troy Hunt's Blog
T
Tenable Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
SecWiki News
SecWiki News
S
Security @ Cisco Blogs
量子位
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
L
LINUX DO - 最新话题
Recent Commits to openclaw:main
Recent Commits to openclaw:main
aimingoo的专栏
aimingoo的专栏
博客园 - 【当耐特】
H
Heimdal Security Blog
The Hacker News
The Hacker News
博客园 - 三生石上(FineUI控件)
Application and Cybersecurity Blog
Application and Cybersecurity Blog
N
Netflix TechBlog - Medium
Vercel News
Vercel News
Forbes - Security
Forbes - Security
B
Blog RSS Feed
H
Hackread – Cybersecurity News, Data Breaches, AI and More
IT之家
IT之家
B
Blog
MongoDB | Blog
MongoDB | Blog
博客园 - 聂微东
Google DeepMind News
Google DeepMind News
S
Secure Thoughts
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
C
Check Point Blog
云风的 BLOG
云风的 BLOG
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
T
The Blog of Author Tim Ferriss
L
Lohrmann on Cybersecurity
F
Full Disclosure
D
Darknet – Hacking Tools, Hacker News & Cyber Security
P
Proofpoint News Feed

博客园 - cean

MSSQL 2005删除所有表的语句[转] MSSQL 2000更改表和存储过程的所有者 C#的String.Split方法[转] StreamReader读取记事本 - cean - 博客园 表中随机查询记录 几种基本的数字正则表达式[转] 浅谈window.attachEvent [转] 在.ashx文件下使用session[转] - cean - 博客园 典文回顾:程序员规划职业道路时需考虑的十个问题[转CSDN] 水印坐标设置 [转]HTML 编辑器大全 关于使用updatepanle后页面还会刷新的个人解决方法。 - cean - 博客园 [转]Asp.net(Ajax)表单验证 函数包 母版页判断登陆 及 母版页与内容页的执行顺序 - cean [转]SQL2000和SQL2005同时安装问题 C#泛型详解[转] .Net课堂:总结必须学习的10项.NET技术[转] 运行asp.net时弹出the status code returned from the server was:404错误提示 iis5.1配置php运行环境
如何建立最初的三层架构[转]
cean · 2009-03-26 · via 博客园 - cean

最近在看三层架构,看的晕呼呼的。现在准备自己先做个关于学生资料的三层练练手。

搜了网上关于三层架构建立的方法,大家觉得如果有错,或比这更好的方法,希望能帮小弟指点下。

先来看看三层具体的是分为哪三层。

     数据库访问层(DAL):Database Access Layer

     业务逻辑层(BLL):   Business logic Layer

     用户表现层(UIL):   User interface layer

    数据访问层主要是提供一些通过的对数据库进行操作(增、删、改、查)的函数。业务逻辑层主要是对数据库访问层提供的函数进行调用。而用户表现层则是我们平常所看到的界面。用户表现层调用业务逻辑层,而业务逻辑层而调用数据访问层,用户表现层是不允许调用数据访问层的。

1.打开VS2005,创建新的项目-》其他项目类型-》visual studio解决方案-》空白解决方案。输入方案名称(school)和所在的位置点击确定。

2.打开解决方案资源管理器,右击此解决方案名称->新建新的项目。项目类型为你所使用的语言,在右边的模板框中选择类库,命名为DAL,用同样的方法再新建个项目命为BLL,然后再新建一个ASP.NET网站,命名为UIL。

3.添加项目BLL对项目DAL的引用,以及UIL对BLL的引用。方法是在资源管理中右击项目名称-》添加引用。在弹出的对话框中选中项目标签,选择适当的项目点击确定。

============