Publication date : 03/19/2024

Course : ADO.NET Entity Framework, mastering and optimizing

Practical course - 2d - 14h00 - Ref. EFC
Price : 1280 € E.T.

ADO.NET Entity Framework, mastering and optimizing




During this course, you'll gain an understanding of all Entity Framework services and see how to use them to simplify data access in your .NET applications. You'll learn how to perfect your queries and achieve optimal execution times.


INTER
IN-HOUSE
CUSTOM

Practical course in person or remote class
Disponible en anglais, à la demande

Ref. EFC
  2d - 14h00
1280 € E.T.




During this course, you'll gain an understanding of all Entity Framework services and see how to use them to simplify data access in your .NET applications. You'll learn how to perfect your queries and achieve optimal execution times.


Teaching objectives
At the end of the training, the participant will be able to:
Creating an Entity Framework data model
Data context configuration
Understanding how offline mode works
Mastering data loading
Control and optimize update operations
Managing schematic changes with migrations

Intended audience
Developers responsible for data access in .NET applications. Project managers, software architects.

Prerequisites
Good knowledge of C# and data access with the .NET framework. Experience required.

Course schedule

1
Introduction

  • Principle and benefits of Relational Object Mapping.
  • Entity Framework version history.
  • Entity Framework architecture.
  • CodeFirst or BaseFirst approach.

2
Creating a database

  • Choice of data provider.
  • Connection configuration.
  • Create a model and data context.
  • Mapping conventions.
  • Database creation and initialization.
Hands-on work
Create a database from a simple model.

3
Data model definition

  • Definition of mapping via annotations or Fluent API.
  • Mapping of enums and complex types.
  • Inheritance (TPT, TPH and TPC).
  • Using views.
Hands-on work
Create a multi-table database with type and relationship configuration. Create and map a view.

4
Migration

  • Preparation of migration tools (installation and creation of history table).
  • Creation of a migration.
  • Run a migration in Visual Studio or by code.
  • Migration management.
Hands-on work
Current migrations.

5
Querying with LINQ to Entities

  • Understand the SQL generation mechanism.
  • View operations with logs.
  • A reminder of how LINQ works (extension methods, lambdas and common operators).
  • Role of navigation properties.
  • Control the loading of entities and related data.
Hands-on work
Create a model based on an existing database and perform common queries, including different scenarios for loading entity sets.

6
Data updates

  • Understand the role of the entity tracking service.
  • Data updating (insertion, deletion, modification).
  • Manage update exceptions.
  • Optimize updates with local validations.
  • Execute SQL commands.
Hands-on work
Implementation of the points presented.

7
Advanced techniques

  • Competitive conflict management (detection and resolution).
  • Using stored procedures.
  • Transactions through the application.
Hands-on work
Implementation of the points presented.

8
Repository and UOW architecture models

  • Interest in and implementation of the Repository model.
  • Context sharing with UOW.
  • Principle of the dependency injection system.
Hands-on work
Implementing a repository with dependency injection in an ASP NET MVC application.


Customer reviews
3,8 / 5
Customer reviews are based on end-of-course evaluations. The score is calculated from all evaluations within the past year. Only reviews with a textual comment are displayed.
CATALIN C.
20/11/25
4 / 5

The 'code first' approach is not the approach chosen by the company, only in the initial phase of the project.
YOUSSEF K.
20/11/25
4 / 5

Missing 1/2 day to cover all concepts
MAESTRE JONATHAN M.
11/09/25
5 / 5

Superb content, a little slow at the beginning, and rightly so, but the second day was more in line with what I was expecting from the course.



Dates and locations
Select your location or opt for the remote class then choose your date.
Remote class

Dernières places
Date garantie en présentiel ou à distance
Session garantie

REMOTE CLASS
2026 : 13 Apr., 29 June, 9 Nov.

PARIS LA DÉFENSE
2026 : 30 Mar., 22 June, 2 Nov.