0% found this document useful (0 votes)
54 views

Entity Framework Core

This document provides a self-training roadmap for Microsoft Entity Framework Core. It outlines prerequisites, references, and a training plan with readings and exercises. The plan covers core EF Core concepts like the code-first approach, DBContext, models and relationships, querying data, modifying data, and more.
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
54 views

Entity Framework Core

This document provides a self-training roadmap for Microsoft Entity Framework Core. It outlines prerequisites, references, and a training plan with readings and exercises. The plan covers core EF Core concepts like the code-first approach, DBContext, models and relationships, querying data, modifying data, and more.
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 7

Microsoft Entity Framework Core

Author: NPT, DHN S84 – Self-training roadmap

Review: AKO, DHN

Date: 23.10.2023 Imputation number: 221-2049

Version: 1.0 Total time to train: 3d (24h)

Time for trainer: 1d (8h)

Self-Training for Microsoft Entity Framework


Table of contents
1. Introduction.........................................................................................................................1
2. Prerequisites.......................................................................................................................2
3. References..........................................................................................................................2
4. Training plan.......................................................................................................................3
5. Practice Exercise................................................................................................................5

1. Introduction
The purpose of this document is to give a roadmap for Microsoft Entity Framework Core
self-training. This is a basic training to provide trainees with basic concepts of Entity
Framework Core.

For each topic, trainees are requested to read the references, do the exercises and verify
the learned knowledge by answering the review questions.
It is expected that after this self-training, trainees have a solid knowledge base of Entity
Framework Core that enables them to start working in Entity Framework Core -based
projects.

© ELCA Information Technology (Vietnam) Ltd. 2008 S84 – Self-training roadmap V 1.0/23.07.08/RJB/Valid 1 / 7
Self-training roadmap

2. Prerequisites
 Trainees are required to have prior basic knowledge of database-based applications
with the .NET framework, that is, working with an SQL database, creating a connection
to it in a .NET application, doing basic CRUD (Create/Read/Update/Delete) operations
and manipulating transactions.

 Make sure the following are installed on your local machine:


o .NET 6+
o Visual Studio 2022+
o SQL Server version 15+

3. References

Ref Source

© ELCA Information Technology (Vietnam) Ltd. 2008 Self-training roadmap V 1.0/23.07.08/RJB/Valid 2 / 7


Self-training roadmap

4. Training plan

No. Type1 Task Description Estimated


Time (h)

NHibernate Basics
What is Entity Framework Core?
1 R Get Started with 2
Overview of Entity Framework Core - EF Core | Microsoft Learn
Entity Framework Core
Entity Framework Core Tutorials (entityframeworktutorial.net)

Key features and benefits of EF core


Compare EF6 and EF Core | Microsoft Learn

Installation :
Install Entity Framework Core (entityframeworktutorial.net)

Code-First:
2 R Development approach with 2
What is Code-First? (entityframeworktutorial.net)
Entity Framework/ Entity
Framework Core

(Same approach)
Understand DBContext :
3 R Entity Framework Core 4
Entity Framework Core DbContext (entityframeworktutorial.net)
DBContext and Migration
DbContext Lifetime, Configuration, and Initialization - EF Core | Microsoft Learn

1
R = Reading, E = Exercise, C = Checkpoint

© ELCA Information Technology (Vietnam) Ltd. 2008 Self-training roadmap V 1.0/23.07.08/RJB/Valid 3 / 7


Self-training roadmap

Migration :
Migration in Entity Framework Core (entityframeworktutorial.net)
Models Mapping and Relationships :
4 R Models, 4
Introduction to relationships - EF Core | Microsoft Learn
Entity Mapping and Relationships:
Entity Properties - EF Core | Microsoft Learn
Fluent API in Entity Framework Core (entityframeworktutorial.net)
Configurations in Entity Framework Core (entityframeworktutorial.net)

Read topics above to understand


 Mapping entities to database tables
 Configuring relationships between entities
 Data Annotations, validation

© ELCA Information Technology (Vietnam) Ltd. 2008 Self-training roadmap V 1.0/23.07.08/RJB/Valid 4 / 7


Self-training roadmap

Query:
6 R Querying Data with 4
How Queries Work - EF Core | Microsoft Learn
Entity Framework Core
Querying in Entity Framework Core (entityframeworktutorial.net)
Eager Loading of Related Data - EF Core | Microsoft Learn
Lazy Loading of Related Data - EF Core | Microsoft Learn
Execute Raw SQL Queries in Entity Framework Core
(entityframeworktutorial.net)

Modifying Data:
7 R Modifying Data with 4
Data Seeding - EF Core | Microsoft Learn
Entity Framework Core
Cascade Delete - EF Core | Microsoft Learn
Saving Related Data - EF Core | Microsoft Learn
Insert Data in Disconnected Scenario in Entity Framework Core
(entityframeworktutorial.net)

Concurrent handling :
Handling Concurrency Conflicts - EF Core | Microsoft Learn

Tracking Entity :
Change Tracking - EF Core | Microsoft Learn
ChangeTracker in Entity Framework Core (entityframeworktutorial.net)

+ Complete the entity model for table Employee of PIM Tools


8 E Work with EF 8

© ELCA Information Technology (Vietnam) Ltd. 2008 Self-training roadmap V 1.0/23.07.08/RJB/Valid 5 / 7


Self-training roadmap

+ Complete the service/repository for Employee entity


+ Handle transactional/ saving concurrency for table Employee
+ Complete entire model for PIM Tool
+ Implement feature: save Project and save Employee
+ Implement feature: delete Project (without delete Employee)
+ Implement feature: search all employee of a project
+ Implement basic search feature: search all projects base on project name,
customer name, project status
+ Implement advance search Feature: search all projects base on project name,
customer name, project status and a group leader visa

+ Write test to verify the saving of multiple projects to achieve the data
represented by the following tree via IProjectService

© ELCA Information Technology (Vietnam) Ltd. 2008 Self-training roadmap V 1.0/23.07.08/RJB/Valid 6 / 7


Self-training roadmap

+ Implement feature A: load a group (without load these projects of group)


+ Implement feature B: load a group (with load these projects of group)
+ Compare between 2 previous task – which case we should use feature A OR
feature B ?
+ Advance use case: When update a project, we have audit who made the
update. Please extend database PROJECT with column
LAST_MODIFIED_USER to help audit who is the last user modify this record.
And also create more table PROJECT_LOG so that we can easily see the
history change of PROJECT

© ELCA Information Technology (Vietnam) Ltd. 2008 Self-training roadmap V 1.0/23.07.08/RJB/Valid 7 / 7

You might also like