KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
In the controllers generated by Visual Studio, as well as the sample application (ContosoUniversity), the Index action always has something like var departments = db.Departments.Include(d => d.Administrator); What's the difference between that and var departments = db.Departments; First I suspected that the first one (with Include) enables the view to retrieve department.Administrator. But the second one (without Include) seems to be able to do that as well.
Tags (comma-separated)
Save Edits
Cancel