N层客户端服务器 [英] N tier client server

查看:90
本文介绍了N层客户端服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好
我迷失在大量信息中,甚至没有通过Google也找不到条目.我的目的是像培训一样开发3层客户端服务器应用程序.我认为我不需要从头开始自己发明/开发所有东西.但是正如我所说,我没有找到开始的重点.

我的工具:VS2010专业版
首选语言:C#(但这并不重要)
数据库:MSQL

我的想法/想像力:
第1层:前端auf瘦客户端,WFA,C#,以后也可能是Web前端

第2层:服务器A上的业务层

第3层:服务器A或任何其他服务器B上的数据库层

对我来说,第一个问题是:第1层和第2层使用什么技术/库/框架?这两个层将如何一起通信?

....并且对于第一次试用,我宁愿不使用任何网络技术.

我希望至少这些问题有意义...
预先感谢您的提示.
关于

Hello all
I''m lost in the flood of information and do not find an entry, not even via google. My intention is to develop a 3 tier client server application, just as training. I do not think that I need to invent/develop everything by myself from scratch. But as I said, I do not find the point to get started.

My tool: VS2010 Professional
Preferred Language: C# (but this is not important)
Database: MSQL

My idea/imagination:
Layer 1: Front End auf Thin Client, WFA, C#, later maybe also web frontend

Layer 2: Business Layer on Server A

Layer3: Database Layer on Server A or any other Server B

The first question for me is: What technology/library/framework to use for layer 1 and layer 2? How this two layers will communicate together?

....and for a first trial I prefer not to use any web techniques.

I hope at least the questions make sense…
Thank you in advance for your tips.
Regards

推荐答案

使用ASP.NET来启动Web应用程序.

创建一个类库-BusinessLogic
创建一个类库-DataAccess

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

为了获取数据,数据将从DA传输到BL层,然后再从BL传输到UI层.
看看这些,用示例进行解释:
C#中的三层体系结构 [ 3-层架构示例 [使用C#的ASP.NET中的3层体系结构 [
Use ASP.NET to web application to start with.

Create a class library - BusinessLogic
Create a class library - DataAccess

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#[^]


这篇关于N层客户端服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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