Microsoft ADO .NET Step by Step
暫譯: Microsoft ADO .NET 循序漸進

Microsoft Corporation

  • 出版商: MicroSoft
  • 出版日期: 2002-02-16
  • 售價: $1,710
  • 貴賓價: 9.5$1,625
  • 語言: 英文
  • 頁數: 528
  • 裝訂: Paperback
  • ISBN: 0735612366
  • ISBN-13: 9780735612365
  • 相關分類: .NET
  • 已過版

買這商品的人也買了...

商品描述

Description:

Work in ADO.NET right away with this accessible, modular primer—based on the proven Microsoft STEP BY STEP learning method.

ADO.NET—the data-access component of the Microsoft .NET Framework—works with any component on any platform that understands XML. Get a solid handle on ADO.NET and learn how to exploit the database functionality of Microsoft Visual Basic® .NET and Microsoft Visual C#™ .NET with this step-by-step primer. You’ll be working in ADO.NET right away with easy-to-grasp examples drawn from the real-world challenges developers face every day. Learn about the ADO.NET object model and how to use it to develop data-bound Windows® Forms and Web Forms. See how ADO.NET interacts with XML and how to access older versions of ADO from the .NET environment. Throughout, you’ll find insightful tips and expert explanations for rapid acceleration of development productivity, faster applications, and more powerful results. Topics covered include:

• Getting started with ADO.NET
• Creating connections
• The Data command and DataReader
• Accessing data with the DataAdapter
• Working with DataSets
• Working with DataTables
• Controlling table views with DataViews
• Editing and updating data
• Data-binding in Windows Forms
• Data-binding in Web Forms
• Using the XML Designer to modify data structure
• Reading and writing XML with ADO.NET
• Using ADO from the .NET Framework

CD features:
• Examples of real-world solutions developed with ADO.NET, including sample code in Visual Basic .NET and Visual C# .NET

 

Table of Contents:

Introduction Ix
    Conventions and Features in This Book x / Using the ADO.NET Step by Step CD-ROM x  
PART 1  GETTING STARTED WITH ADO.NET 1
CHAPTER 1  Getting Started with ADO.NET 3
    On the Fundamental Interconnectedness of All Things 4 / The ADO.NET Object Model 4 / Binding Data to a Simple Windows Form 7  
PART 2  DATA PROVIDERS 21
CHAPTER 2  Creating Connections 23
    Understanding Connections 23 / Creating Connections 24 / Using Connection Properties 31 / Connection Methods 38 / Handling Connection Events 41  
CHAPTER 3  Data Commands and the DataReader 45
    Understanding Data Commands and DataReaders 45 / Creating Data Commands 46 / Command Properties 49 / Command Methods 59  
CHAPTER 4  The DataAdapter 71
    Understanding the DataAdapter 71 / Creating DataAdapters 72 / DataAdapter Properties 79 / DataAdapter Methods 86 / Handling DataAdapter Events 97  
CHAPTER 5  Transaction Processing in ADO.NET 109
    Understanding Transactions 109 / Creating Transactions 110 / Using Transactions 119  
PART 3  MANIPULATING DATA 129
CHAPTER 6  The DataSet 131
    Understanding DataSets 132 / Creating DataSets 133 / DataSet Properties 139 / DataSet Methods 153  
CHAPTER 7  The DataTable 161
    Understanding DataTables 161 / Creating DataTables 162 / DataTable Properties 170 / DataTable Methods 190 / DataTable Events 197  
CHAPTER 8  The DataView 199
    Understanding DataViews 199 / Creating DataViews 201 / DataView Properties 206 / DataView Methods 215  
PART 4  USING THE ADO.NET OBJECTS 219
CHAPTER 9  Editing and Updating Data 221
    Understanding Editing and Updating Data 221 / DataRow States and Versions 223 / Editing Data in a DataSet 226 / Updating Data Sources 236 / Accepting and Rejecting DataSet Changes 245  
CHAPTER 10  ADO.NET Data-Binding in Windows Forms 257
    Understanding Data-Binding in Windows Forms 258 / Binding Controls to an ADO.NET Data Source 260 / Using the BindingContext Object 273 / Using the CurrencyManager Object 274  
CHAPTER 11  Using ADO.NET in Windows Forms 289
    Formatting Data 289 / Displaying Data in Windows Controls 299 / Validating Data in Windows Forms 325  
CHAPTER 12  Data-Binding in Web Forms 343
    Understanding Data-Binding in Web Forms 343 / Binding Controls to an ADO.NET Data Source 346 / Maintaining ADO.NET Object State 357 / Updating a Data Source from a Web Form 362  
CHAPTER 13  Using ADO.NET in Web Forms 367
    Using Template-Based Web Controls 367 / Moving Through Data 390  
PART 5  ADO.NET AND XML 407
CHAPTER 14  Using the XML Designer 409
    Understanding the XML Schemas 409 / Creating XML Schema and Typed DataSets 411 / Working with DataTables in the XML Designer 419 / Working with Elements 430 / Working with Types 433 / Working with Attributes 441  
CHAPTER 15  Reading and Writing XML 445
    Understanding ADO.NET and XML 445 / Using the DataSet XML Methods 446 / Controlling How the XML Is Written 472 / The XmlDataDocument Object 479  
CHAPTER 16  Using ADO in the .NET Framework 483
    Understanding COM Interoperablility 483 / Using ADO in the .NET Framework 485 / Using ADOX in the .NET Framework 497  
ABOUT THE AUTHOR 506
INDEX 507

商品描述(中文翻譯)

描述:

立即開始使用 ADO.NET,這本易於理解的模組化入門書籍基於經過驗證的 Microsoft STEP BY STEP 學習方法。

ADO.NET 是 Microsoft .NET Framework 的數據訪問組件,能與任何理解 XML 的平台上的任何組件協同工作。透過這本逐步指導的入門書,您將深入了解 ADO.NET,並學習如何利用 Microsoft Visual Basic® .NET 和 Microsoft Visual C#™ .NET 的數據庫功能。您將立即開始使用 ADO.NET,並透過從開發人員每天面對的現實挑戰中提取的易於理解的範例進行學習。了解 ADO.NET 物件模型及其如何用於開發數據綁定的 Windows® 表單和 Web 表單。了解 ADO.NET 如何與 XML 互動,以及如何從 .NET 環境訪問舊版本的 ADO。在整個過程中,您將發現有見地的提示和專家解釋,以快速提升開發生產力、加快應用程式速度並獲得更強大的結果。涵蓋的主題包括:

• 開始使用 ADO.NET
• 創建連接
• 數據命令和 DataReader
• 使用 DataAdapter 訪問數據
• 使用 DataSets
• 使用 DataTables
• 使用 DataViews 控制表格視圖
• 編輯和更新數據
• 在 Windows 表單中的數據綁定
• 在 Web 表單中的數據綁定
• 使用 XML 設計器修改數據結構
• 使用 ADO.NET 讀取和寫入 XML
• 從 .NET Framework 使用 ADO

CD 特點:
• 使用 ADO.NET 開發的現實解決方案範例,包括 Visual Basic .NET 和 Visual C# .NET 的範例代碼

目錄:

引言
Ix

本書中的約定和特徵 x / 使用 ADO.NET Step by Step CD-ROM x

第一部分 開始使用 ADO.NET
1

第一章 開始使用 ADO.NET
3
• 所有事物的基本互聯性 4 / ADO.NET 物件模型 4 / 將數據綁定到簡單的 Windows 表單 7

第二部分 數據提供者
21
第二章 創建連接
23
• 理解連接 23 / 創建連接 24 / 使用連接屬性 31 / 連接方法 38 / 處理連接事件 41

第三章 數據命令和 DataReader
45
• 理解數據命令和 DataReaders 45 / 創建數據命令 46 / 命令屬性 49 / 命令方法 59

第四章 DataAdapter
71
• 理解 DataAdapter 71 / 創建 DataAdapters 72 / DataAdapter 屬性 79 / DataAdapter 方法 86 / 處理 DataAdapter 事件 97

第五章 ADO.NET 中的事務處理
109
• 理解事務 109 / 創建事務 110 / 使用事務 119

第三部分 操作數據
129
第六章 DataSet
131
• 理解 DataSets 132 / 創建 DataSets 133 / DataSet 屬性 139 / DataSet 方法 153

第七章 DataTable
161
• 理解 DataTables 161 / 創建 DataTables 162 / DataTable 屬性 170 / DataTable 方法 190 / DataTable 事件 197

第八章 DataView
199
• 理解 DataViews 199 / 創建 DataViews 201 / DataView 屬性 206 / DataView 方法 215

第四部分 使用 ADO.NET 物件
219
第九章 編輯和更新數據
221
• 理解編輯和更新數據 221 / DataRow 狀態和版本 223 / 在 DataSet 中編輯數據 226 / 更新數據源 236 / 接受和拒絕 DataSet 更改 245

第十章 Windows 表單中的 ADO.NET 數據綁定
257
• 理解 Windows 表單中的數據綁定 258 / 將控制項綁定到 ADO.NET 數據源 260 / 使用 BindingContext 物件 273 / 使用 CurrencyManager 物件 274

第十一章 在 Windows 表單中使用 ADO.NET
289
• 格式化數據 289 / 在 Windows 控制項中顯示數據 299 / 在 Windows 表單中驗證數據 325

第十二章 Web 表單中的數據綁定
343
• 理解 Web 表單中的數據綁定 343 / 將控制項綁定到 ADO.NET 數據源 346 / 維護 ADO.NET 物件狀態 357 / 從 Web 表單更新數據源 362

第十三章 在 Web 表單中使用 ADO.NET
367
• 使用基於模板的 Web 控制項 367 / 瀏覽數據 390

第五部分 ADO.NET 和 XML
407
第十四章 使用 XML 設計器
409
• 理解 XML 架構 409 / 創建 XML 架構和類型 DataSets 411 / 在 XML 設計器中使用 DataTables 419 / 使用元素 430 / 使用類型 433 / 使用屬性 441

第十五章 讀取和寫入 XML
445