Home
Blogs
Questions
Jobs
Monetize

Home

About Us

Blogs

Questions

Jobs

Monetize

Post Job

banner

Questions about eager-loading

Read more about eager-loading

python (12.9k questions)

javascript (9.2k questions)

reactjs (4.7k questions)

java (4.2k questions)

java (4.2k questions)

c# (3.5k questions)

c# (3.5k questions)

html (3.3k questions)

Questions - eager-loading

Loading-behaviour | Include vs Projection

I have a question regarding a different loading behaviour when using EFCore 5 Code First. First the model: public class Store { ICollection<Customer> Customers {get;set;} } public class Custo...
test-img

dpa

c#

entity-framework-core

lazy-loading

projection

eager-loading

Votes: 0

Answers: 1

Latest Answer

When you just load data via Include DbContext.Stores.Include(store => store.Customers) .ToList() EF tracks entities in ChangeTracker and fixup all references of already loaded objects. That's w...
test-img

Svyatoslav Danyliv

is there a way to access model attributes while using with method

hey guys i have a problem. im trying to eagerload my basket items by defining a scope: public function apply(Builder $builder, Model $model) { $builder->with(['product']); } and my product rel...
test-img

arya_la

laravel

eloquent

eager-loading

Votes: 0

Answers: 2

Latest Answer

You could define your scope like an anonymous global scope class Basket extends Model { protected static function booted() { static::addGlobalScope('withProduct', function (Builder $bu...
test-img

IGP

Posts

Questions

Blogs

Jobs

The ultimate platform for coders and IT specialists

About

  • Company
  • Support

  • Platform

  • Terms & Conditions
  • Privacy statement
  • Cookie policy
  • Cookie option
  • OnlyCoders © 2025  |  All rights reserved