3层图层 [英] 3-tier layers

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

问题描述

你好,


我试着理解业务和表示层如何实际上将b $ b转化为编程现实。

我读了很多关于3层的文章,但没有一个给出了实用的

例子

我设法理解了数据层只有。

例如Web服务和他们的消费是一个n层的实例,

覆盖业务和表示层?

如果它没有必要在WEB开发中如何将演示和商业

层变为现实,通过什么? ASP是表示层和C#

业务层吗?

Hello,

I try to understand how the business and presentation layers would
practically
translate into programming reality.
I read lots of articles about 3-tier, but none of them gave a practical
example
and I managed to understand the data layer only.
Is for example web services and their consumption an instance of n-tier,
covering the business and presentation layers?
If it is not necessary a WEB development how would the presentation and
business
layer come to life, through what? Is ASP the presentation layer and C# the
business layer?

Thanks a lot.

推荐答案

3层模型基于一般功能的分离。你有

3层:


接口

商业

数据


每个层都比下面的更具体。


数据层仅用于处理底层数据存储。它知道

没有关于如何处理数据的具体业务规则。它只有
知道如何获取它,更改它,删除它,那种东西。它是任何应用程序存储的数据的编程接口。因此,它b / b
不知道任何关于数据是什么的规则,或者是如何处理
。它是供应职员。组织。这种方式可以是许多应用程序使用的



业务层用于操作数据。它包含业务

逻辑和包含引擎的业务规则。一个申请。它

知道有关数据层的所有信息,而数据层对业务层知之甚少

。业务层与Data一起使用,但没有做任何事情将
暴露给用户。它确实暴露了任何其他

组件或应用程序必须能够处理数据,并负责确保所有内容都按照处理业务规则。

它有一个编程接口,但没有用户界面。这样,Business层的

功能可用于许多不同类型的

接口。


用户界面是最具体的。它对数据一无所知

Tier;这是Business Tier的工作。它知道有关业务层的公开API的所有内容,它的工作是向用户提供数据,

并从用户那里获取输入并转发它到业务层。它是一个

通用翻译器。对于一端说人的应用,

和另一端的商业API。


-

HTH,


Kevin Spencer

微软MVP

专业Numbskull


努力工作是一个药物为

没有安慰剂。


" Dan Aldean" <哒******* @ yahoo.com>在消息中写道

news:ua ************** @ TK2MSFTNGP04.phx.gbl ...
The 3-tier model is based upon separation of general functionality. You have
3 tiers:

Interface
Business
Data

Each tier is more specific than the one below.

The Data Tier is only for working with underlying data stores. It knows
nothing of specific business rules about how to handle the data. It only
knows how to fetch it, change it, delete it, that sort of thing. It is a
programming interface to the data that any application stores. As such, it
is agnostic of any rules concerning what the data is, or how it is to be
treated. It is the "supply clerk" of the organization. This way it can be
used by many applications.

The Business Tier is for manipulating the data. It contains the Business
logic and Business rules that comprise the "engine" of an application. It
knows everything about the Data Tier, while the Data Tier knows nothing
about the Business Tier. The Business Tier works with Data, but does nothing
to expose it to a user. It does expose what is necessary for any other
component or application to be able to work with the data, and is in charge
of making sure that everything is handled according to the Business rules.
It has a programming interface, but no user interface. This way, the
functionality of the Business tier can be used in many different types of
interfaces.

The User Interface is the most specific. It knows nothing about the Data
Tier; that is the Business Tier''s job. It knows everything about the exposed
API of the Business tier, and its job is to present the data to the user,
and to take input from the User and relay it to the Business Tier. It is a
"universal translator" for the application, which speaks human at one end,
and business API at the other.

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Numbskull

Hard work is a medication for which
there is no placebo.

"Dan Aldean" <da*******@yahoo.com> wrote in message
news:ua**************@TK2MSFTNGP04.phx.gbl...
你好,
我试着理解业务和表示层如何实际转化为编程现实。
我读了很多关于3层的文章,但没有一个给出了实用
示例
我设法只了解数据层。
例如,Web服务及其消费是否为n层实例,
涵盖业务和表示层?
如果没有必要进行WEB开发,那么演示和商业层将如何通过什么来实现呢? ASP是表示层和C#
业务层吗?

非常感谢。
Hello,

I try to understand how the business and presentation layers would
practically
translate into programming reality.
I read lots of articles about 3-tier, but none of them gave a practical
example
and I managed to understand the data layer only.
Is for example web services and their consumption an instance of n-tier,
covering the business and presentation layers?
If it is not necessary a WEB development how would the presentation and
business
layer come to life, through what? Is ASP the presentation layer and C#
the business layer?

Thanks a lot.



我会补充一点,应允许每一层物理隔离为

。所有层级都可以在单独的服务器/工作站上运行。

I''d add that each tier should be allowed to be physically seperated as
well. All the tiers can operate on seperate servers / workstations.


感谢您的回复,

我正在寻找更多的描述如何表达业务层

表示:一个DLL,

a COM对象,一个WEB服务?

理论上我理解这个概念,但是实用方面很困难

让我抓住。

我认为WEB服务可以解决业务层,但是使用了什么

当应用程序基于Windows时?


" Kevin Spencer" <柯*** @ DIESPAMMERSDIEtakempis.com>在消息中写道

news:OV ************** @ TK2MSFTNGP03.phx.gbl ...
Thanks for replying,
I was looking more for a description of how the business layer can be
expressed: a DLL,
a COM object, a WEB service?
Theoretically I understand the concept, but the practical side is difficult
for me to grab.
As I see it WEB services would solve the business layer, but what''s used
when the application is Windows based?

"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> wrote in message
news:OV**************@TK2MSFTNGP03.phx.gbl...
3层模型基于一般功能的分离。您有3层:

接口
业务


每层都比下面更具体。

数据层仅用于处理底层数据存储。它不知道如何处理数据的具体业务规则。它只知道如何获取它,更改它,删除它,那种东西。它是任何应用程序存储的数据的编程接口。因此,它不知道有关数据是什么或如何处理的任何规则。它是供应职员。组织。这种方式可以被许多应用程序使用。

业务层用于操作数据。它包含业务逻辑和包含引擎的业务规则。一个申请。它知道有关数据层的所有信息,而数据层对业务层没有任何了解。业务层与Data一起使用,但没有任何东西可以将其暴露给用户。它确实暴露了任何其他组件或应用程序能够处理数据所需的内容,并且负责确保根据业务规则处理所有内容。它有一个编程接口,但没有用户界面。这样,业务层的功能可用于许多不同类型的接口。

用户界面是最具体的。它对数据层没有任何了解;这是Business Tier的工作。它了解业务层的公开API的所有内容,其工作是向用户提供数据,并从用户那里获取输入并将其转发给业务层。 。它是一种通用翻译器。对于应用程序,一端说人类,另一端说商业API。

-
HTH,

Kevin Spencer 专业Numbskull

辛勤工作是一种药物,没有安慰剂。

Dan Aldean <哒******* @ yahoo.com>在消息中写道
新闻:ua ************** @ TK2MSFTNGP04.phx.gbl ...
The 3-tier model is based upon separation of general functionality. You
have 3 tiers:

Interface
Business
Data

Each tier is more specific than the one below.

The Data Tier is only for working with underlying data stores. It knows
nothing of specific business rules about how to handle the data. It only
knows how to fetch it, change it, delete it, that sort of thing. It is a
programming interface to the data that any application stores. As such, it
is agnostic of any rules concerning what the data is, or how it is to be
treated. It is the "supply clerk" of the organization. This way it can be
used by many applications.

The Business Tier is for manipulating the data. It contains the Business
logic and Business rules that comprise the "engine" of an application. It
knows everything about the Data Tier, while the Data Tier knows nothing
about the Business Tier. The Business Tier works with Data, but does
nothing to expose it to a user. It does expose what is necessary for any
other component or application to be able to work with the data, and is in
charge of making sure that everything is handled according to the Business
rules. It has a programming interface, but no user interface. This way,
the functionality of the Business tier can be used in many different types
of interfaces.

The User Interface is the most specific. It knows nothing about the Data
Tier; that is the Business Tier''s job. It knows everything about the
exposed API of the Business tier, and its job is to present the data to
the user, and to take input from the User and relay it to the Business
Tier. It is a "universal translator" for the application, which speaks
human at one end, and business API at the other.

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Numbskull

Hard work is a medication for which
there is no placebo.

"Dan Aldean" <da*******@yahoo.com> wrote in message
news:ua**************@TK2MSFTNGP04.phx.gbl...
你好,
我试着理解业务和表示层如何实际转化为编程现实。
我读了很多关于3层的文章,但没有一个给出了实用的文章。 >示例
我设法只了解数据层。
例如,Web服务及其消费是n层的实例,
覆盖业务和表示层吗?
如果没有必要进行WEB开发,那么演示和商业层将如何通过什么来实现呢? ASP是表示层还是C#
业务层?

非常感谢。
Hello,

I try to understand how the business and presentation layers would
practically
translate into programming reality.
I read lots of articles about 3-tier, but none of them gave a practical
example
and I managed to understand the data layer only.
Is for example web services and their consumption an instance of n-tier,
covering the business and presentation layers?
If it is not necessary a WEB development how would the presentation and
business
layer come to life, through what? Is ASP the presentation layer and C#
the business layer?

Thanks a lot.



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

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