When you decide whether your application should use a DataReader (see Retrieving Data Using a DataReader (ADO。NET)) or a DataSet (see DataSets, DataTables, and DataViews (ADO。NET)), 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 manner。 Although the DataAdapter uses the DataReader to fill the contents of a DataSet (see Populating a DataSet from a DataAdapter (ADO。NET)), by using the DataReader, you can boost performance because you will save memory that would be consumed by the DataSet, and avoid the processing that is required to create and fill the contents of the DataSet。 

LINQ to DataSet 

LINQ to DataSet provides query capabilities and compile-time type checking over data cached in a DataSet object。 It allows you to write queries in one of the 。NET Framework development language, such as C# or Visual Basic。 

LINQ to SQL 

LINQ to SQL supports queries against an object model that is mapped to the data structures of a relational database without using an intermediate conceptual model。 Each table is represented by a separate class, tightly coupling the object model to the relational database schema。 LINQ to SQL translates language-integrated queries in the object model into Transact-SQL and sends them to the database for execution。 When the database returns the results, LINQ to SQL translates the results back into objects。 

ADO。NET Entity Framework 

The ADO。NET Entity Framework is designed to enable developers to create data access applications by programming against a conceptual application model instead of programming directly against a relational storage schema。 The goal is to decrease the amount of code and maintenance required for data-oriented applications。 

ADO。NET Data Services 

The ADO。NET Data Services framework is used to deploy data services on the Web or an intranet。 The data is structured as entities and relationships according to the specifications of the Entity Data Model。 Data deployed on this model is addressable by standard HTTP protocol。 

XML and ADO。NET 

ADO。NET leverages the power of XML to provide disconnected access to data。 ADO。NET was designed hand-in-hand with the XML classes in the 。NET Framework; both are components of a single architecture。 

ADO。NET and the XML classes in the 。NET Framework converge in the DataSet object。 The DataSet can be populated with data from an XML source, whether it is a file or an XML stream。 The DataSet can be written as World-Wide Web Consortium (W3C) compliant XML that includes its schema as XML schema definition language (XSD) schema, regardless of the source of the data in the DataSet。 Because of the native serialization format of the DataSet is XML, it is an excellent medium for moving data between tiers, making the DataSet an optimal choice for remoting data and schema context to and from an XML Web service。 

2、ADO。NET Data Platform

The ADO。NET Data Platform is a multi-release strategy to decrease the amount of coding and maintenance required for developers by enabling them to program against conceptual entity data models。 This platform includes the ADO。NET Entity Framework and related technologies。 

上一篇:齿轮平行转子系统英文文献和中文翻译
下一篇:电子商务英文文献及中文翻译

未加筋的低屈服点钢板剪...

会计师事务所任期与审计...

信息系统开发与数据库开...

升式单位上升操作结构英文文献和中文翻译

机器人学入门力学与控制英文文献和中文翻译

园林植物景观的园林绿化...

基卡气体管道PLEM结构的原...

LiMn1-xFexPO4正极材料合成及充放电性能研究

新課改下小學语文洧效阅...

互联网教育”变革路径研究进展【7972字】

我国风险投资的发展现状问题及对策分析

ASP.net+sqlserver企业设备管理系统设计与开发

麦秸秆还田和沼液灌溉对...

安康汉江网讯

张洁小说《无字》中的女性意识

老年2型糖尿病患者运动疗...

网络语言“XX体”研究