You Can Now Track Record Types With EF Core
Zoran Horvat Zoran Horvat
29.9K subscribers
3,829 views
260

 Published On Sep 19, 2024

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 ►   / zoranhorvat  
Join Discord server with topics on C# ► https://codinghelmet.com/go/discord
Enroll course Beginning Object-Oriented Programming with C# ► https://codinghelmet.com/go/beginning...
Subscribe ►    / @zoran-horvat  

Related videos:
The Most Powerful EF Core Configuration Technique    • Here Is the Most Powerful EF Core Con...  
The Ultimate Guide to C# Records    • The Ultimate Guide to C# Records  
Possibility of Discriminated Unions in C#    • Possibility of Discriminated Unions i...  

▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
⚡️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.

show more

Share/Embed