Stop Forcing Surrogate Keys in EF Core: When Natural Keys Win @zoran-horvat
Stop Forcing Surrogate Keys in EF Core: When Natural Keys Win  @zoran-horvat
Uploaded February 2026 | Updated September 2026, 3 weeks ago
Learn how to utilize the power of EF Core on entities that have a well-defined natural key.

Support me on Patreon ► patreon.com/zoranhorvat

You can also learn much more from these wonderful books:
𝘿𝙚𝙚𝙞𝙜𝙣𝙞𝙣𝙜 𝘿𝙖𝙩𝙖-𝙄𝙣𝙩𝙚𝙣𝙚𝙞𝙫𝙚 𝘌𝙥𝙥𝙡𝙞𝙘𝙖𝙩𝙞𝙀𝙣𝙚 by Martin Kleppmann, et al. ► codinghelmet.com/go/book-designing-data-intensive-applications#ad
𝘿𝙀𝙢𝙖𝙞𝙣-𝘿𝙧𝙞𝙫𝙚𝙣 𝘿𝙚𝙚𝙞𝙜𝙣 by Eric Evans ► codinghelmet.com/go/book-domain-driven-design
𝙁𝙪𝙣𝙘𝙩𝙞𝙀𝙣𝙖𝙡 𝙋𝙧𝙀𝙜𝙧𝙖𝙢𝙢𝙞𝙣𝙜 𝙞𝙣 𝘟# by Enrico Buonanno ► codinghelmet.com/go/buonanno-functional-programming#ad
𝘿𝙖𝙩𝙖𝙗𝙖𝙚𝙚 𝙎𝙮𝙚𝙩𝙚𝙢 𝘟𝙀𝙣𝙘𝙚𝙥𝙩𝙚 by Abraham Silberschatz et al. ► codinghelmet.com/go/database-system-concepts#ad
𝙄𝙣𝙩𝙧𝙀𝙙𝙪𝙘𝙩𝙞𝙀𝙣 𝙩𝙀 𝘌𝙡𝙜𝙀𝙧𝙞𝙩𝙝𝙢𝙚 by Thomas Cormen et al. ► codinghelmet.com/go/introduction-to-algorithms-book#ad

If you are willing to invest more effort in learning, these are the courses I recommend:
𝘜𝙚𝙜𝙞𝙣𝙣𝙞𝙣𝙜 𝙊𝙗𝙟𝙚𝙘𝙩-𝙊𝙧𝙞𝙚𝙣𝙩𝙚𝙙 𝙋𝙧𝙀𝙜𝙧𝙖𝙢𝙢𝙞𝙣𝙜 𝙬𝙞𝙩𝙝 𝘟# at Udemy ► codinghelmet.com/go/beginning-oop-with-csharp
.𝙉𝙀𝙏 𝘟𝙀𝙧𝙚 𝙈𝙖𝙚𝙩𝙚𝙧𝙮 at Coursera ► codinghelmet.com/go/dotnet-core-mastery
𝘌𝙙𝙫𝙖𝙣𝙘𝙚𝙙 𝘟# 𝙋𝙧𝙀𝙜𝙧𝙖𝙢𝙢𝙞𝙣𝙜 𝙞𝙣 .𝙉𝙀𝙏 𝘟𝙀𝙧𝙚 at Coursera ► codinghelmet.com/go/advanced-csharp-programming

Join the Discord server with topics on C# ► codinghelmet.com/go/discord
Subscribe ► youtube.com/channel/UCxsWfh8LCcn55mFB6zGBT1g?sub_confirmation=1

▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
👚 About Me 👚
Hi, I’m Zoran, I have more than 25 years of experience as a software developer, architect, team lead, and more. I have been programming in C# since its inception in the early 2000s. Since 2017 I have started publishing professional video courses at Pluralsight and Udemy and by this point, there are over 100 hours of the highest-quality videos you can watch on those platforms. On my YouTube channel, you can find shorter video forms focused on clarifying practical issues in coding, design, and architecture of .NET applications.❀
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
⚡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.
Stop Forcing Surrogate Keys in EF Core: When Natural Keys WinThe KISS Principle Explained by Dino EspositoAI Software Development Is Near-ImpossibleFavor Guard Clauses Over if-elseWhy Senior Devs Build Their Own MonadsMaster the Design of Classes (Part 4)Refactor AI Slop Into Proper TypesWhy Don’t C# Records Validate Their Values?Master the Design of Classes (Part 3)There Is Life Beyond ExceptionsHow to Design a Reusable C# LibraryThe Ultimate Guide to C# Records
Zoran on C# |

Stop Forcing Surrogate Keys in EF Core: When Natural Keys Win

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER