You Can Now Track Record Types With EF Core @zoran-horvat
You Can Now Track Record Types With EF Core  @zoran-horvat
Uploaded September 2024 | Updated September 2026, 1 week ago
This video teaches the virtues of using record types in domain modeling and also in persistence using EF Core. Those two did not go together until recently. But the climate has changed, and this video shows how you can benefit from the new feature added to EF Core.
Ever since record types saw the light of day in C#, the question was: Can we persist records with EF Core? And the grim answer was always: No. Entity Framework tracks entities, and records are no entities.
EF Core 8 changed that picture with its new feature: complex types. You can now use a record the way you always wanted - as an immutable part of a larger object - and persist it the way you always felt right - as a set of columns in that larger object's table.
And there is more. Watch the video to learn all the angles of applying record types in a model persisted using EF Core.

Download source code ► patreon.com/zoranhorvat
Join Discord server with topics on C# ► codinghelmet.com/go/discord
Enroll course *Beginning Object-Oriented Programming with C#* ► codinghelmet.com/go/beginning-oop-with-csharp
Subscribe ► youtube.com/channel/UCxsWfh8LCcn55mFB6zGBT1g?sub_confirmation=1

Related videos:
The Most Powerful EF Core Configuration Technique youtu.be/xpm2nRpvvA8
The Ultimate Guide to C# Records youtu.be/KFx9XHpoYV4
Possibility of Discriminated Unions in C# youtu.be/q_tH3njpAFc

▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
⚡️COPYRIGHT NOTICE:
The Copyright Laws of the United States recognize a “fair use” of copyrighted content. Section 107 of the U.S. Copyright Act states: “Notwithstanding the provisions of sections 106 and 106A, the fair use of a copyrighted work, including such use by reproduction in copies or phono records or by any other means specified by that section, for purposes such as criticism, comment, news reporting, teaching (including multiple copies for classroom use), scholarship, or research, is not an infringement of copyright." This video and our youtube channel, in general, may contain certain copyrighted works that were not specifically authorized to be used by the copyright holder(s), but which we believe in good faith are protected by federal law and the Fair use doctrine for one or more of the reasons noted above.
You Can Now Track Record Types With EF CoreThis New Feature Gives Superpower to C# Record TypesDitch User Secrets: Use Secrets Store in DevelopmentWill Shared Mutable References Ruin Your Application?This Is How Domain-Driven Design Makes Object-Oriented Design More PowerfulExtension Everything Can Be a Trap! – Learn When To Use ItCan You Extend LINQ?Have You Ever Seen This Method?Let C# Tuples Become Your Best FriendsEF Core Is DDD (Here Is Why)Use params Like a Pro in C# 13This Is Why You Still Must Learn the Theory of Algorithms
Zoran on C# |

You Can Now Track Record Types With EF Core

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER