API

CollectionEntry.Load

Explicitly loads a collection navigation; may issue a database query.

Formal Syntax & Structure

csharp syntaxcsharp
db.Entry(category).Collection(c => c.Books).Load()

Working Example

Example Snippetcsharp
// Documentary fragment; see mapped lesson for context.db.Entry(category).Collection(c => c.Books).Load()
C# & .NET Reference