ASP.net中N层体系结构的循序渐进教程 [英] step by step tutorial for N tier architecure in ASP.net

查看:79
本文介绍了ASP.net中N层体系结构的循序渐进教程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我是n层体系结构的新手,我想使用n层体系结构创建一个简单的应用程序.任何人都可以提供有关n层体系结构(包括代码)的分步教程吗?
任何帮助,高度赞赏.

谢谢与问候
Abdul

Hi,

I am new to the n-tier architecture,i want to create a simple application using n-tier architecture.Any could give step by step tutorial for n-tier architecture including codes?
Any help highly appreciate.

Thanks and Regards
Abdul

推荐答案

尝试以下方法:
演练:使用ASP.NET创建N层数据应用程序演示层 [ ^ ]

架构指南:ASP.NET MVC框架+ N层+实体框架等等 [ ^ ]

希望对您有所帮助.
Try with these:
Walkthrough: Creating an N-tier Data Application with a ASP.NET Presentation Tier[^]

Architecture Guide: ASP.NET MVC Framework + N-tier + Entity Framework and Many More[^]

Hope you can find it helpful.


要了解n层,请在此处阅读3层并了解其工作原理:
创建一个类库-BusinessLogic(第二层)
创建一个类库-DataAccess(第3层)

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

为了获取数据,数据将从DA传输到BL层,然后再从BL传输到UI层.
看看这些,用示例进行解释:
C#中的三层体系结构 [ 3-层架构示例 [使用C#的ASP.NET中的3层体系结构 [ google [
To understand about n-tier, read about 3 tier here and see how it works:
Create a class library - BusinessLogic (2nd layer)
Create a class library - DataAccess (3rd layer)

Now, from your UI (1st layer), 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#[^]

Now you can put as many layers in between UI & DB layer to increase it from 3-tier to n-tier as per your need.

..and visit google[^] too.


这篇关于ASP.net中N层体系结构的循序渐进教程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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