讲解三层架构 [英] explain about 3 tier Architecture

查看:136
本文介绍了讲解三层架构的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您能解释一下三层体系结构吗?

Can you please explain about 3 tier Architecture

推荐答案

这真的有帮助吗?我不这么认为,因为如果您想寻找的话,您可能已经从Google/Internet得到了答案.那里有很好的文章/说明.
您在这里提出这个问题,对您有什么新意/不同之处?
Would it really help? I don''t think so because you would have got your answer already from Google/Internet if you would have tried to look for. There are very good article/explanations available out there.
What''s new/different do you expect by asking this question here?



创建一个类库-商业逻辑.在UI层项目中添加它的引用.
创建一个类库-DataAccess.在BL层项目中添加它的引用.

现在,从您的UI,使用对象模型并传递给BusinessLogic项目类.此类是业务逻辑类.在此处根据您的需要进行更改.
现在,将更改后的数据从业务逻辑类传递到dataAccess项目类.在此类中,使用ADO.NET并将所需的值传递给存储过程.

为了获取数据,数据将从DA传输到BL层,然后再从BL传输到UI层.
看看这些,用示例进行解释:
C#中的三层体系结构 [ 3-层架构示例 [使用C#的ASP.NET中的3层体系结构 [使用c#的asp.net中的3层体系结构 [ ^ ]
Create a class library - BusinessLogic. Add a reference of it in UI layer project.
Create a class library - DataAccess. Add a reference of it in BL layer project.

Now, from your UI, use the object model and pass on to BusinessLogic project class. This class is a Business logic class. Do the changes as per your need here.
Now, pass on the changed data from business logic class to dataAccess project class. In this class, use ADO.NET and pass on the needed values to Stored Procedure.

For getting back data, it will be transferred from DA to BL and then BL to UI layer.
Have a look at these, explaination with samples:
3-tier architecture in C#[^]
3-Tier Architecture Examples[^]
3-Tier Architecture in ASP.NET with C#[^]

3-Tier Architecture in asp.net using c#[^]


这篇关于讲解三层架构的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆