Hands-On Full-Stack Web Development with ASP.NET Core
by Tamir Dresher, Amir Zuker, Shay Friedman
Loading related entities
A relational database is named so because it makes the relationship between entities (Tables) a first-class citizen and gives means to validate and query those relationships (that is, foreign key constraints and joins).
The power of EF Core as an O/RM is that it bridges the world of object-oriented class associations and the world of relational database joins. It does so by treating the class properties that reference another entity (or a collection of entities) as a Navigation Property. With a Navigation Property, each operation you do on the property will generate the equivalent SQL join statement. For example, GiveNTake allows its users to search for products in a specific category. This is what it looks like: ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access