在ADO.NET断开和连接方法究竟是什么意思 [英] What is exactly meaning of disconnected and connected approach in ADO.NET

查看:135
本文介绍了在ADO.NET断开和连接方法究竟是什么意思的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我学习ADO.Net。 我读这条线: -

I am learning ADO.Net. I read this line:-

DataReader的连接的方法和数据集断开连接   方法

DataReader is "connected" approach and dataset is "disconnected" approach

从这句话我已经达到了这样的结论,在数据读取器,我们需要建立数据库连接,而在数据集中,我们并不需要建立连接到数据库。

From this sentence I have reached to this conclusion that in data reader we need to establish the connection to the database while in dataset we do not need to establish the connection to the data base.

不过,如何在不建立连接一台可以上网data.I知道我没有得到确切含义。

But how without establishing the connection one can access data.I know I am not getting the exact meaning.

请任何人能告诉我,例子的确切含义。

Please any one can tell me the exact meaning with example.

推荐答案

断开=建立连接,获取数据,关闭连接

Disconnected = Make Connection , Fetch Data , Close Connection

连接=建立连接,保持连接,当接近被称为关闭连接。

Connected = Make Connection , Keep Connection alive , Close Connection when close is called.

有关详细信息,请参阅上的 MSDN

For more information , please see the link on MSDN

这篇关于在ADO.NET断开和连接方法究竟是什么意思的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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