Modern Entity Framework: A Tour of EF Core 5.0 pt 1

preview_player
Показать описание
#dotnet #EntityFramework #Data

EF Core 5.0 includes support for many-to-many relationships and TPT mapping, two sorely missed features from EF6. Join us for a whirlwind tour where we compare EF Core 5.0 features with those from classic EF6. 

In this episode, Jeremy chats with his teammate Arthur Vickers about some of the new and very useful features that are available in Entity Framework Core 5.

[01:20] - Simple logging (New feature)
[03:58] - Sensitive data logging (New feature)
[05:09] - Batching saves
[07:17] - Enhanced debug views
[13:00] - Supporting private constructors
[17:13] - Changing the collection type
[19:56] - Many-to-many (New feature)
[22:07] - Filtered Include (New feature)

Announcing the release of Entity Framework Core 5

What's new in EF Core 5.0

Entity Framework Core 101
Рекомендации по теме
Комментарии
Автор

Honestly, I always use the "database first" approach and generate code manually (I know there is a command-line utility but don't care about it). I really love EF Core and it made my development days soooo much easier. I would never use anything else. Very happy with it. Although, once you start working on complex queries, you are really better of doing stored procedures, as complex SQL Linq queries are PITA and very confusing.

zoran
Автор

Arthur said it right "EF Core is used to store your C# objects to a database". So many people think ORMs are for accessing databases from their programs. A small but very important distinction.

jpboy
Автор

Nice seeing some C#9 stuff and F# crossover like the immutable stuff.
But that 'include' magic though... 😲

Xorgye
Автор

EF Core team is raising the bar again!

akovac
Автор

Question. I have noticed today that I no longer need to use ‘ThenInclude’ for including objects from properties at multiple levels down. For example works absolutely the same as

If true this is so handy. Am I right or have I missed somthing?

Michael-London
Автор

why not just use "private set;" doesn't that make it read only ?

pedroferreira
Автор

It would be good to get the new version to have a designer like the old ef did for new people it’s Easier to understand

dotnetdevni