Mid EF Core

What happens when you access a navigation property on a detached entity?

  • Throws InvalidOperationException or returns null since no tracking or lazy loading.
  • Need to attach entity or explicitly load navigation properties.

More from Entity Framework Core Tutorial

All questions for this course