Duration: 5 Days
In this course, you will learn to optimize your designs and develop better performing data access code by using the ADO.NET Entity Framework, LINQ, WCF Data Services, the Sync Framework, and ADO.NET.
This course will prepare you for Exam 70-516: TS: Accessing Data with Microsoft .NET Framework 4. Success on Exam 70-516 earns you the MCTS: .NET Framework 4, Data Access certification and credit towards the MCPD: Windows Developer 4 and Web Developer 4 certification.
Certification: TS: Accessing Data with Microsoft .NET Framework 4
Proven Impact Exclusive!
Continue developing your skills after class with 24/7 access to our live remote labs for six months, providing you with valuable extra time for hands-on practice.
What You Will Learn
- Select an appropriate combination of data access technologies and tools most appropriate to each case by evaluate a variety of business cases
- Roles of Entity Framework, WCF Data Services, and ADO.NET for building and maintaining applications
- Use LINQ on top of these technologies to improve productivity and the quality of applications
- Use the tools provided with the Entity Framework to map the conceptual model used by the business logic of an application to the logical data model provided by a database
- Query an Entity Data Model (EDM) using common methods, such as LINQ to Entities, Entity SQL, and the classes in the EntityClient namespace
- Perform data modification tasks on data in an EDM
- Function of the Object Services model implemented by the Entity Framework and the support provided by the Object Services API to address the issues faced by enterprise applications that have to handle multiple concurrent users simultaneously accessing the same data
- Best practices for designing and building a scalable, optimized data access layer by using Object Services
- Customize and extend entities with business logic and use advanced mappings to shape the data model to business and application requirements
- Reuse existing business classes in a data access layer built by using the Entity Framework
- Address the architectural issues that can arise when building an n-tier enterprise application by using the Entity Framework
- Build extensible solutions that can update data in an n-tier enterprise application by using the Entity Framework
- Access offline data or data that that has limited availability in client applications
- Design, develop, and consume a simple Windows Communication Foundation (WCF) Data Service
- Use WCF Data Services to update and delete data and to handle multi-user concerns
- Develop high performance, scalable ADO.NET applications that can query and update data
- Enable development against a logical model which abstracts the low-level details of querying ADO.NET tables and result sets using LINQ to SQL
Audience
- Professional .NET software developers who use Microsoft Visual Studio in a team-based, medium-sized to large development environment
- Experienced users of Microsoft Visual Studio 2008 SP1 or newer releases of the Visual Studio product
Prerequistes
- Understanding of the problem-solving techniques that apply to software development, including the scripting techniques and some hands-on experience writing scripts
- Experience implementing data access and data binding within web and/or Windows client applications
- General understanding of the purpose, function, and features of .NET framework
- Conceptual understanding of the Entity Framework
- Experience using Visual Studio 2008
- Experience in n-tier application, object oriented design, and development that access various data sources
- Data access experience in Windows client and web application development
- Experience implementing data binding within their applications
- Some experience using LINQ and ADO.NET
Course Outline
1. Architecture and Data Access Technologies
- Data Access Technologies
- Data Access Scenarios
2. Building Entity Data Models
- Entity Data Models
- Modifying the Entity Data Model
- Customizing the Entity Data Model
3. Querying Entity Data
- Retrieving Data by Using LINQ to Entities
- Retrieving Data by Using Entity SQL
- Retrieving Data by Using EntityClient Provider
- Retrieving Data by Using Stored Procedures
- Unit Testing Your Data Access Code
4. Creating, Updating, and Deleting Entity Data
- Maintaining Contact and Reward Data
- Maintaining RewardsClaim Data
5. Handling Multi-User Scenarios by Using Object Services
- Handling Concurrency in the Entity Framework
- Transactional Support in the Entity Framework
6. Building Optimized Solutions by Using Object Services
- Stages of Query Execution
- Change Tracking and Object Materialization
- Using Compiled Queries
- Using Design-Time Generated Entity Framework Views
- Monitoring Performance
- Performing Asynchronous Data Modifications
7. Customizing Entities and Building Custom Entity Classes
- Overriding Generated Classes
- Using Templates to Customize Entities
- Creating and Using Custom Entity Classes
8. Using POCO Classes with the Entity Framework
- Requirements for POCO Classes
- POCO Classes and Lazy Loading
- POCO Classes and Change Tracking
- Extending Entity Types
9. Building an N-Tier Solution by Using the Entity Framework
- Designing an N-Tier Solution
- Operating and Implementing Data Transport Structures
- Protecting Data and Operations
10. Handling Updates in an N-Tier Solution by Using the Entity Framework
- Tracking Entities and Persisting Changes
- Managing Exceptions in an N-Tier Solution
11. Building Occasionally Connected Solutions
- Offline Data Caching by Using XML
- Using the Sync Framework
12. Querying Data by Using WCF Data Services
- WCF Data Services
- Creating a WCF Data Service
- Consuming a WCF Data Service
- Protecting Data and Operations in a WCF Data Service
13. Updating Data by Using WCF Data Services
- Creating, Updating, and Deleting Data in a WCF Data Service
- Preventing Unauthorized Updates and Improving Performance
- Using WCF Data Services with Nonrelational Data
14. Using ADO.NET
- Retrieving and Modifying Data by Using ADO.NET Commands
- Retrieving and Modifying Data by Using DataSets
- Managing Transactions and Concurrency in Multiuser Scenarios
Course Labs
Lab 1: Analyze Data Access Scenarios
- Identify Data Access Technologies
Lab 2: Use Entity Data Models (EDM)
- Generate an EDM from the AdventureWorks Database
- Add Entities and Associations
- Use the Generate Database Wizard
- Map Entities to Multiple Tables
- Implement an Inheritance Hierarchy
- Use Stored Procedures
- Create a Complex Type
Lab 3: Query Entity Data
- Retrieve All Contact Entities
- Retrieve Contact Entities by Using a Filter
- Retrieve RewardsClaimed Entities
- Query the Rewards Family of Entities
- Execute a Stored Procedure
Lab 4: Create, Update, and Delete Entity Data
- Maintain Contact and Reward Data
- Maintain RewardsClaim Data
Lab 5: Handle Multi-User Scenarios by Using Object Services
- Handle Concurrency of Rewards Claimed Data
- Update the RewardsClaimed and ArchivedRewardsClaimed Information by Using a Transaction
Lab 6: Build Optimized Solutions by Using Object Services
- Improve the Performance of Query Operations
- Improve the Performance of Update Operations
Lab 7: Customize Entities and Build Custom Entity Classes
- Use a Template to Add Custom Functionality to Entity Classes
- Create Custom Entity Classes
Lab 8: Use POCO Classes with the Entity Framework
- Use POCO Classes
- Extend Your POCO Classes
Lab 9: Build an N-Tier Solution by Using the Entity Framework
- Create the Contacts and Orders Data Access Tier
- Protect Data Access Operations
Lab 10: Handle Updates in an N-Tier Solution by Using the Entity Framework
- Handle Updates in the Data Access Tier
- Detect and Handle Order Conflicts
Lab 11: Build Occasionally Connected Solutions
- Modify the Orders Application to Use Offline XML Data
- Modify the Orders Application to Synchronize Locally Cached Data
Lab 12: Create and Use WCF Data Services
- Expose Order Data as a WCF Data Service
- Consume a WCF Data Service
- Restrict Access to Data Exposed by a WCF Data Service
- Implement a Business Operation in a WCF Data Service
Lab 13: Update Data by Using WCF Data Services
- Update Entities by Using a WCF Data Service
- Create and Delete Entities by Using a WCF Data Service
- Restrict Create, Update, and Delete Requests
Lab 14: Use ADO.NET
- Use ADO.NET to Retrieve Read-Only Information Quickly and Perform Simple Data Modifications
- Develop the Product List Web Application
- Enable Data Modifications