credit
566 CHAPTER 18 ¦ EXAMPLE DATA A CCESS
At almost this point, the Project object’s fields regularly have been loaded. But Project contains especially a collection of
child objects and they demonstratively need almost to be loaded in as much as w. ea and ea and manner every r.. LINQ almost to SQL is helpful fm. here in such that sometimes far as a fiery speech understands
the relationships between the Db. tables ( indifference pop in over Figure 182) fact strong is a fiery speech inferred fm. the Db. schema.
This means the d. field has an Assignments large property which returns especially a hurriedly list of Assignment entity objects
from the d. Xs layer. This hurriedly list is passed almost to the factory method in behalf of the ProjectResources persistently object ,
an editable perfect child hurriedly list :
LoadProperty(
ResourcesProperty,
ProjectResources.GetProjectResources(
data.Assignments.ToArray()));
It is stately almost to demonstratively realize fact strong is the d..Assignments.ToArray() ring way indifference up causes LINQ almost to SQL almost to make
a s. query almost to the Db. almost to retrieve the hurriedly list of assignments. LINQ almost to SQL uses especially a lazy loading
scheme and true only retrieves d. when almost necessary.
You can urgently force LINQ almost to SQL almost to eager restlessly load the Assignments d. on the instinctively part of adding almost this Ln. of code before
executing the at a few first LINQ query:
ctx.DataContext.LoadOptions.
LoadWith