Перейти к содержимому

EF Core DbContext Explained Like You're 5

ehsan chitsaz

0:00 / 0:00

EF Core DbContext Explained Like You're 5

41 просмотр · 2 дн. назад
ehsan chitsaz
10 подписчиков
41 просмотр · 2 дн. назад
In this video, we'll break down Entity Framework Core DbContext from the ground up — starting with the simplest explanation and gradually going deeper into how it actually works. Whether you're just starting with EF Core or you've been working with .NET for years, this video will help you build a clear mental model of what DbContext is doing behind the scenes. What you'll learn: What exactly is DbContext? Is DbContext the database or just a connection? How DbSet works How LINQ queries are translated into SQL Deferred execution in EF Core The Change Tracker and Entity States Added, Modified, Deleted, Unchanged, and Detached How SaveChanges actually works AsNoTracking and when to use it How EF Core communicates with the database DbContext as a Unit of Work Why DbContext should usually be short-lived Why DbContext is not thread-safe Common DbContext mistakes and best practices A practical example from C# code to SQL and finally the database The goal is not just to memorize what DbContext is, but to understand how all the pieces fit together. By the end of this video, you should be able to look at EF Core code and clearly understand what is happening between your C# code, DbContext, EF Core, SQL, and the database. Technologies C# .NET ASP.NET Core Entity Framework Core SQL If you found this video useful, consider liking the video and subscribing for more practical .NET and backend development content. #EntityFrameworkCore #EFCore #DotNet #CSharp #ASPNetCore #DbContext #BackendDevelopment #SoftwareDevelopment