I have the below model. What is the better way to load the parent entity with child entity at the time of fetching from the DB with find method?
Parent Entity:>
In EF, there is a concept called Eager Loading using .Include.
Eager Loading
.Include
MS Docs - Loading Related Data - EF Core
.NET Fiddle
using MyContext context = new MyContext(); IList clients = context.Clients .Include(c => c.Address) .Where(c => c.LastName == "patel") .ToList();