Book description
Get in-depth coverage and expert insights on advanced ADO.NET programming topics such as optimization, DataView, and large objects (BLOBs and CLOBs). Targeting experienced, professional software developers who design and develop enterprise applications, this book assumes that the reader knows and understands the basic functionality and concepts of ADO.NET 2.0 and that he or she is ready to move to mastering data-manipulation skills in Microsoft Windows®. The book is structured so readers can jump in for reference on each topic as needed, complete with pragmatic and instructive code examples.
Table of contents
- Programming Microsoft® ADO.NET 2.0 Applications: Advanced Topics
- Dedication
- A Note Regarding Supplemental Files
- Foreword
- Acknowledgments
- Introduction
-
1. Overview of ADO.NET Disconnected Classes
-
Getting Started with the DataTable Object
- Adding DataColumn Objects to Create a Schema
- Creating Primary Key Columns
-
Creating DataRow Objects to Hold Data
- Adding Data to the DataTable
- Viewing the State of the DataRow Object Using DataRowState
- Managing Multiple Copies of Data Using the DataRowVersion
- Resetting the Slate Using the AcceptChanges and RejectChanges Methods
- Using SetAdded and SetModified to Change the RowState
- Deleting the DataRow, and What About Undeleting?
- Enumerating the DataTable
- Copying and Cloning the DataTable
- Using the DataTable with XML Data
- Using the DataView as a Window into a DataTable
- Using a DataSet Object to Work with Lots of Data
- Looping Through Data with the DataTableReader
- Summary
-
Getting Started with the DataTable Object
-
2. Overview of ADO.NET Connected Classes
-
Using Providers to Move Data
- Getting Started with the DbConnection Object
- DbCommand Object
- DbDataReader Object
- Using Multiple Active Result Sets (MARS) to Execute Multiple Commands on a Connection
- Performing Bulk Copy Operations with the SqlBulkCopy Object
- DbDataAdapter Object
- DbProviderFactory Classes
- DbProviderFactories Class
- Enumerating Data Sources
- Using DbException to Catch Provider Exceptions
- Summary
-
Using Providers to Move Data
- 3. ADO.NET Trace Logging
-
4. Advanced Connectivity to the Data Store
- Building Accurate Connection Strings
- Connection Pooling
- Asynchronous Data Access
- Working with SQL Server Provider Statistics
- Summary
-
5. Working with Disconnected Data
- Understanding Concurrency Issues
- Designing for Disconnected Data
- Who’s Afraid of the Big, Bad GUID?
-
Building a Conflict Resolution Screen
- Creating the Project
- Extending the Typed DataSet (CustomerDataSet) Class
- Extending the TableAdapter (TblCustomerTableAdapter) Class to Expose the ContinueUpdateOnError Property
- Synchronizing the Disconnected DataSet with the Database Server
- Creating the Conflict Resolution Screen
- Calling the Conflict Resolution Screen
- Correcting Concurrency Errors with the Conflict Resolution Screen
- Building a Better Conflict Resolution Screen
- Summary
- 6. Working with Relational Disconnected Data
-
7. Working with the Windows Data Grid Control
-
Understanding the DataGridView Control
- Formatting with Styles
- DataGridView Modes of Operation
- Binding to a Data Source
- Resource Sharing
- DataGridView Setup
- Working with Cell Events
- Working with DataGridViewColumn Objects
- Working with DataGridViewRow Objects
- Implementing Virtual Mode
- Summary
-
Understanding the DataGridView Control
-
8. Working with the Web Data Grid Control
- Understanding the GridView Control
-
GridView Setup
- Viewing the Declarative Markup in the HTML Source
- Creating the GridView Object Programmatically
- Working with the GridView Object Events
- Working with Column Objects
- Summary
-
9. Working with the SQLCLR
- Does the SQLCLR Replace T-SQL?
-
Creating a Stored Procedure Without Visual Studio
- Enabling the SQLCLR
- Creating the Source Code
- Using the Context Object
- Compiling the Code
- Loading the Assembly
- Changing the Execution Permission
- Registering the Stored Procedure
- Executing the Stored Procedure
- Refreshing the Assembly
- Viewing Installed Assemblies and Their Permissions
- Using Parameters to Transfer Data
- Creating a Stored Procedure by Using Visual Studio
- Passing Rowset Data
- Creating User-Defined Functions
- Working with User-Defined Aggregates
- Working with Triggers
- Working with User-Defined Types
- Accessing SQLCLR Features from the Client
- Summary
-
10. Understanding Transactions
- What Is a Transaction?
- Creating a Transaction
- Setting the Transaction Isolation Level
- Introducing the System.Transactions Namespace
- Best Practices
- Summary
- 11. Retrieving Metadata
-
12. Data Caching for Performance
- Using the SqlDependency Class
- ASP.NET SQL Cache Invalidation
- Summary
-
13. Implementing Security
-
Application Security Overview
- Authentication
- Authorization
- Impersonation
- Delegation
- Role-Based Security
-
Code Access Security
- Evidence
- Code Access Permissions
- Working with CAS
- Code Groups
- Permission Sets
- Runtime Security Policy Levels
- Changing the Application Domain Security
- Creating a Security Test Project
- Requested Permissions
- Placing Demands on the Callers
- Being Assertive on Downstream Callers
- Using the AllowPartiallyTrustedCallersAttribute Attribute
- SQL Server Security
- ADO.NET Security
- Summary
-
Application Security Overview
- 14. Working with Large Objects (LOBs, BLOBs, and CLOBs)
-
15. Working with XML Data
- Introducing XPath and XQuery
- Why Store XML Data in SQL Server 2005?
- The xml Data Type
-
Getting Started with the xml Data Type
- Using the query Method with XPath
-
Using the query Method with XQuery
- Using Data Accessors
- Using Computed Element Constructors
- Using String Functions
- Using Aggregate Functions
- Using Context Functions
- Using XQuery FLWOR vs. XPath
- Using Namespaces in Your Queries
- Using Schemas to Work with Typed XML Data
- Using the xml Data Type in SQL Tables
- Using Column Data in the XQuery Expression
- Using the exist Method with XQuery
- Using the modify Method to Change Data
- Using the nodes Method to Change Data
- Indexing the xml Column
- Using XML with ADO.NET
- Summary
- A. About the Author
- B. Additional Resources for Visual Basic Developers
- C. Additional Resources for C# Developers
- D. Additional Resources for Web Developers
- E. Additional Resources for Database Developers
- Index
- About the Author
- Copyright
Product information
- Title: Programming Microsoft® ADO.NET 2.0 Applications: Advanced Topics
- Author(s):
- Release date: November 2005
- Publisher(s): Microsoft Press
- ISBN: 9780735621411
You might also like
book
Windows® 98 Unleashed
Windows 98 Unleashed provides you with comprehensive coverage of the newest Windows features. This complete reference …
book
Programming in the .NET Environment
is the software developer's guide to the .NET Framework. The authors describe Microsoft's vision for distributed …
book
Microsoft® SQL Server™ 2000 Unleashed, Second Edition
Microsoft SQL Server 2000 Unleashed, 2E offers a variety of topics for system and database administrators …
book
Programming Microsoft® ADO.NET 2.0 Core Reference, 2nd Edition
Get a practical introduction to the Microsoft .NET Framework 2.0 libraries (ADO.NET 2.0) that communicate, access, …