Overview:
This two-day instructor-led course will provide you with the knowledge and skills to access and modify data by using ADO.NET 3.5.
Learning Method:
This course will be presented using a combination of lectures, group discussions and practical exercises. Each student will be provided with a comprehensive set of course notes. This hands-on course combines exercises and practical work to solidify learning.
Who will benefit from this course?
This course is designed for application developers who create applications in Visual Studio 2005 or 2008.
Pre-requisites:
Before attending this course, you should have experience developing applications by using previous versions of Microsoft Visual Studio in either VB.Net or C#.
What can you expect to gain from this course?
After completing this course, you will be able to:
- describe the purpose and structure of ADO.NET 3.5
- explain the role of data providers in ADO.NET 3.5
- list the technologies and techniques available for managing data with ADO.NET 3.5
- insert, update, and delete data by using ADO.NET Command objects
- implement transactions to control data integrity and concurrency
- define and use a DataSet for retrieving data
- use a DataSet to update a database
- use a DataSet as a local cache in an occasionally connected environment
- define LINQ queries for selecting data from an in-memory data structure
- use LINQ to SQL to query data in a database
- use LINQ to SQL to modify data and save changes to the database
- explain how to use the ADO.NET Entity Framework to map a database schema to a logical business model
- use the ADO.NET Entity Framework to query and manage data
- explain how Synchronisation Services supports occasionally-connected solutions
- use Synchronisation Services to download data from a SQL Server database
- use Synchronisation Services to upload data to a SQL Server database.
Course Content:
Module 1:Getting Started with ADO.NET 3.5
- This module explains how to connect to a database and retrieve data by using ADO.NET commands.
- The Structure of ADO.NET 3.5
- Connecting to a Database and Retrieving Data
- Best Practices for Managing Connections and Performing Queries
- Exercise: Connecting to a Database and Retrieving Data
- Connecting to a Database
- Executing a Simple Query
- Executing a Query That Returns a Result Set
- Executing a Query That Requires Parameters
Module 2:Modifying Data by Using ADO.NET Commands
- This module explains how to modify data by using ADO.NET commands.
- Inserting, Updating, and Deleting Data
- Managing Data Integrity and Concurrency
- Exercise: Modifying Data by Using ADO.NET Commands
- Inserting, Updating, and Deleting Data in a Database
- Implementing Transactional Updates
- Executing Commands Asynchronously
Module 3:Querying and Maintaining Data by Using DataSets
- This module explains how to use DataSets to fetch and modify data, and act as a local data cache.
- Creating and Using a DataSet to Retrieve Data
- Updating a Database by Using a DataSet
- Using a DataSet in an Occasionally Connected Environment
- Exercise: Using a DataSet to Retrieve and Modify Data
- Creating a Typed DataSet
- Retrieving Data into a DataSet
- Modifying Data in a DataSet
- Saving a DataSet and Resolving Conflicts
Module 4:Querying and Maintaining Data by Using LINQ
- This module explains how to use LINQ to retrieve and update data.
- Querying In-Memory Data by Using LINQ Query Expressions
- Retrieving Data by Using LINQ to SQL
- Modifying Data by Using LINQ to SQL
- Exercise: Using LINQ to SQL to Retrieve and Modify Data
- Querying Data by Using LINQ to SQL Query Expressions
- Retrieving Data by Using LINQ to SQL Entity Classes
- Modifying Data by Using LINQ to SQL
Module 5:Implementing an Entity Model by Using the ADO.NET Entity Framework
- This module explains how to use the Entity Framework to implement an entity data model for querying and maintaining data.
- Creating an Entity Data Model by Using the ADO.NET Entity Framework
- Querying and Modifying Data by Using the ADO.NET Entity Framework
- Exercise: Using the ADO.NET Entity Framework to Implement an Entity Data Model
- Creating an Entity Data Model
- Querying and Modifying Data in an Entity Data Model
- Instantiating and Manipulating Entities by Using Object Services
Module 6:Building Occasionally Connected Solutions by Using Synchronisation Services
- This module explains how to use Synchronisation Services to build occasionally connected solutions.
- Understanding Microsoft Synchronisation Services
- Downloading Data by Using Synchronisation Services
- Uploading Data by Using Synchronisation Services
- Exercise: Building Occasionally Connected Solutions by Using Synchronisation Services
- Modifying a Database Schema to Support Synchronisation
- Downloading Data to a Client Computer
- Uploading Data Changes to the Database