作业帮 > 英语 > 作业

英语翻译请直译或意译以下英语句子为中文,要求意思正确,语句通顺.When deciding whether your a

来源:学生作业帮 编辑:搜搜做题作业网作业帮 分类:英语作业 时间:2024/04/20 21:41:38
英语翻译
请直译或意译以下英语句子为中文,要求意思正确,语句通顺.
When deciding whether your application should use a DataReader (see Retrieving Data Using the DataReader) or a DataSet (see Using DataSets in ADO.NET),you should consider the type of functionality that your application requires.Use a DataSet to do the following:
Cache data locally in your application so that you can manipulate it.If you only need to read the results of a query,the DataReader is the better choice.
Remote data between tiers or from an XML Web service.
Interact with data dynamically such as binding to a Windows Forms control or combining and relating data from multiple sources.
Perform extensive processing on data without requiring an open connection to the data source,which frees the connection to be used by other clients.
If you do not require the functionality provided by the DataSet,you can improve the performance of your application by using the DataReader to return your data in a forward-only,read-only fashion.Although the DataAdapter uses the DataReader to fill the contents of a DataSet (see Populating a DataSet from a DataAdapter),by using the DataReader you can boost performance because you will save memory that would be consumed by the DataSet,as well as avoid the processing required to create and fill the contents of the DataSet.
英语翻译请直译或意译以下英语句子为中文,要求意思正确,语句通顺.When deciding whether your a
DataReader 数据读取器 DataAdapter数据适配器 DataSet数据集
翻译:
当决定使用数据读取器(见数据读取器在检索数据的使用)或数据集(见ADO.NET中数据集的使用)时,应该考虑应用程序所需的功能.
数据集针对以下情况使用:应用程序中局部缓存数据以便于处理.如果仅需要读取查询结果,那么数据读取器是更好的选择.
在各层之间交换数据或使用XML Web服务的远程数据
动态数据的交互,例如绑定到Windows Forms控制程序 或混合来来自多个数据源的数据.
对数据执行大量处理而不需要连接到数据源,也不会与其它客户端使用的连接发生冲突.
如果你不需要数据集提供的功能,你可以通过使用数据读取器提高应用程序的性能,但只能是只进和只读的方式进行数据访问.
尽管数据适配器是使用数据读取器进行数据集写入的(见从数据适配器生成数据集),但通过使用数据读取器可以提升应用程序的性能是因为节省了数据集占用的内存,同时也避免了创建和写入数据集内容的流程.
可以看参考资料,里面对几者功能上的区别讲的很详细.
在各层之间交换数据或使用XML Web服务的远程数据
动态数据的交互,例如绑定到Windows Forms控制程序 或混合来来自多个数据源的数据.
对数据执行大量处理而不需要连接到数据源,也不会与其它客户端使用的连接发生冲突.
如果你不需要数据集提供的功能,你可以通过使用数据读取器提高应用程序的性能,但只能是只进和只读的方式进行数据访问.
尽管数据适配器是使用数据读取器进行数据集写入的(见从数据适配器生成数据集),但通过使用数据读取器可以提升应用程序的性能是因为节省了数据集占用的内存,同时也避免了创建和写入数据集内容的流程.
可以看参考资料,里面对几者功能上的区别讲的很详细.