Top "Eager-loading" questions

Eager loading is a way to load objects of a certain class and a number of named associations in the same request.

Laravel - Eager Loading Polymorphic Relation's Related Models

I can eager load polymorphic relations/models without any n+1 issues. However, if I try to access a model related …

laravel eloquent polymorphic-associations eager-loading polymorphism
EF Core returns null relations until direct access

I have some models like those below: public class Mutant { public long Id { get; set; } ... // Relations public long OriginalCodeId { get; …

entity-framework-core lazy-loading eager-loading
Entity Framework - Eager loading related entities

I'm using Entity Framework 4 with MVC and need to ensure any referenced entities I want to use in my view …

.net entity-framework entity-framework-4 eager-loading
Loading Nested Entities / Collections with Entity Framework

I am trying to Eagerly load all the related entities or collection of Entity in one call. My Entities Looks …

c# entity-framework-4.1 code-first entity-relationship eager-loading
laravel - eloquent - get sum of related model specific column

assuming that I have the table orders with fields id, userId, amount, description and the table user with various fields …

laravel eloquent eager-loading
Linq to Entities - eager loading using Include()

I've got this really basic table structure: dbo.tblCategory dbo.tblQuestion (many to one relationship to tblCategory) dbo.tblAnswer (many …

c# .net-3.5 linq-to-entities include eager-loading
Entity Framework Core 2.0.1 Eager Loading on all nested related entities

I have a simple problem, but cant seem to find a way around it. I am using Entity Framework Core …

c# entity-framework-core eager-loading
EF: Lazy loading, eager loading, and "enumerating the enumerable"

I find I'm confused about lazy loading, etc. First, are these two statements equivalent: (1) Lazy loading: _flaggedDates = context.FlaggedDates.Include("…

entity-framework entity-framework-4 lazy-loading eager-loading
Disable eager relations

In my project I have many Eloquent models that have eager relations configured in class like this: protected $with = [ 'countries', …

laravel eloquent eager-loading
Laravel belongsTo with condition and eager load

I have a Post model associated to a Section model, which depend on an extra condition to work: <?php …

laravel eager-loading belongs-to