简单的3层东西 [英] Simple 3 tier stuff

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

问题描述

对此抱歉,但我是ADO.NET的新手(最后来自简单的ADO,

祝福它),我正在尝试创建一个简单的三层程序。 />
即,用户界面图层/业务对象层/数据库层


我有一个简单的程序,可以填充和编写我的

satasets。他们目前只映射数据库表。所以1个数据集,

5个数据表和几个关系。


在这个程序中我似乎无法隐藏用户界面上的数据库信息非常好。我正在寻找的是一个隐藏中间层中所有

连接和数据对象的示例,因此用户界面

只需要处理集合等等。


任何例子都会非常适合。到目前为止,我发现的所有示例都是写入数据网格并完全忽略了


Sorry about this but I''m new to ADO.NET (finally coming from simple ADO,
bless it) and I''m trying to create a simple three tier program.
Ie, User interface Layer / Business object layer / Database layer

I''ve got a simple program that is activilly populating and writing my
satasets. They are currently only mapping the database tables.So 1 dataset,
5 datatables and several relationships.

In this program I can''t seem to hide the database information very well from
the user interface. What I''m looking for is an example that hides all the
connection and data objects in the middle tier, so that the user interface
simply has to deal with collections and such like.

Any examples please would be greatly appricated. All the examples I have
found so far have been writing to datagrids and missing the point
completely.

推荐答案




要隐藏数据库的东西你应该把它放在另一台机器上,让你的客户通过这台机器与另一台机器通话webservices或其他一些技术

(远程可能)。

-

Pete

----- -

读/写.NET文章
http://www.howtodothings.com/showart...ubcategory=132


为什么连接应该在中间层。业务逻辑应该是b $ b b在中间层,连接是在较低层。


你是否已经映射了你的功能和数据流,或者你刚才开始

编码?,我会坐下来仔细思考你需要什么东西之前

你把手指放在钥匙上。


有几本关于这个主题的书,它会让你读书。


-


OHM(Terry Burns)

。 。 。单手人。 。


当你不知道自己在做什么时,过得很快


" Andrew" <一个***** @ nospam.dbasplus.com>在留言中写道

新闻:e1 ************** @ TK2MSFTNGP09.phx.gbl ...
Why should the connection be in the middle tier. The business logic should
be in the middle tier and the connections the lower tier.

Have you mapped your functionality and data flows yet, or did you just start
coding ?, I would sit down and think hard about what objects you need before
you put anymore fingers on keys.

There are several books on this subject, it would pay you to have a read.

--

OHM ( Terry Burns )
. . . One-Handed-Man . . .

Time flies when you don''t know what you''re doing

"Andrew" <an*****@nospam.dbasplus.com> wrote in message
news:e1**************@TK2MSFTNGP09.phx.gbl...
对此抱歉,但我我是ADO.NET的新手(终于来自简单的ADO,祝福它),我正在尝试创建一个简单的三层程序。
即,用户界面层/业务对象层/数据库层

我有一个简单的程序,可以自动填充和编写我的
satasets。他们目前只映射数据库表。所以1
数据集,5个数据表和几个关系。

在这个程序中,我似乎无法很好地隐藏数据库信息
来自用户界面。我正在寻找的是一个隐藏中间层中所有
连接和数据对象的示例,因此用户界面只需要处理集合等等。

任何例子请大大高兴。到目前为止,我发现的所有示例都是写入数据网格并完全忽略了这一点。
Sorry about this but I''m new to ADO.NET (finally coming from simple ADO,
bless it) and I''m trying to create a simple three tier program.
Ie, User interface Layer / Business object layer / Database layer

I''ve got a simple program that is activilly populating and writing my
satasets. They are currently only mapping the database tables.So 1 dataset, 5 datatables and several relationships.

In this program I can''t seem to hide the database information very well from the user interface. What I''m looking for is an example that hides all the
connection and data objects in the middle tier, so that the user interface
simply has to deal with collections and such like.

Any examples please would be greatly appricated. All the examples I have
found so far have been writing to datagrids and missing the point
completely.



这应该有帮助
http://msdn.microsoft.com/library/de...ml/daab-rm.asp


-


WG Ryan,eMVP


让微软知道!
https://www.windowsembeddedeval.com/...ity/newsgroups

" Andrew" <一个***** @ nospam.dbasplus.com>在留言中写道

新闻:e1 ************** @ TK2MSFTNGP09.phx.gbl ...
This should help
http://msdn.microsoft.com/library/de...ml/daab-rm.asp

--

W.G. Ryan, eMVP

Have an opinion on the effectiveness of Microsoft Embedded newsgroups?
Let Microsoft know!
https://www.windowsembeddedeval.com/...ity/newsgroups
"Andrew" <an*****@nospam.dbasplus.com> wrote in message
news:e1**************@TK2MSFTNGP09.phx.gbl...
对此抱歉,但我我是ADO.NET的新手(终于来自简单的ADO,祝福它),我正在尝试创建一个简单的三层程序。
即,用户界面层/业务对象层/数据库层

我有一个简单的程序,可以自动填充和编写我的
satasets。他们目前只映射数据库表。所以1
数据集,5个数据表和几个关系。

在这个程序中,我似乎无法很好地隐藏数据库信息
来自用户界面。我正在寻找的是一个隐藏中间层中所有
连接和数据对象的示例,因此用户界面只需要处理集合等等。

任何例子请大大高兴。到目前为止我发现的所有例子都是写入数据网格并完全忽略了这一点。
Sorry about this but I''m new to ADO.NET (finally coming from simple ADO,
bless it) and I''m trying to create a simple three tier program.
Ie, User interface Layer / Business object layer / Database layer

I''ve got a simple program that is activilly populating and writing my
satasets. They are currently only mapping the database tables.So 1 dataset, 5 datatables and several relationships.

In this program I can''t seem to hide the database information very well from the user interface. What I''m looking for is an example that hides all the
connection and data objects in the middle tier, so that the user interface
simply has to deal with collections and such like.

Any examples please would be greatly appricated. All the examples I have
found so far have been writing to datagrids and missing the point
completely.



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

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