Avoid Lazy Loading Entities in ASP.NET Applications 🙅🏻♂️
Lazy Loading is an Entity Framework feature that lets you worry less about the specific amount of data you need to fetch with a given query. 😌
Instead, you write simple queries, and Entity Framework will load the minimal amount of data (which is a good thing), and then will only fetch additional data on an as-needed basis. ✅
That is, rather than eager loading all of the related data a given entity might have, lazy loading is a technique that has EF perform the minimal amount of work needed up front, and then only performs additional work if it turns out to be necessary. ⚠️
This sounds like a great feature, but you should turn it off in your ASP.NET web apps. 🚫
This article explains why you should do this. 🧐
https://t.me/pgimg/121
[ Article ] : bit.do/lazyy
〰〰〰〰〰〰
#AspMvc #LazyLoading
@ProgrammingTip
Lazy Loading is an Entity Framework feature that lets you worry less about the specific amount of data you need to fetch with a given query. 😌
Instead, you write simple queries, and Entity Framework will load the minimal amount of data (which is a good thing), and then will only fetch additional data on an as-needed basis. ✅
That is, rather than eager loading all of the related data a given entity might have, lazy loading is a technique that has EF perform the minimal amount of work needed up front, and then only performs additional work if it turns out to be necessary. ⚠️
This sounds like a great feature, but you should turn it off in your ASP.NET web apps. 🚫
This article explains why you should do this. 🧐
https://t.me/pgimg/121
[ Article ] : bit.do/lazyy
〰〰〰〰〰〰
#AspMvc #LazyLoading
@ProgrammingTip
Telegram
Programming Tips Resources