Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
179 views
in Technique[技术] by (71.8m points)

What is the behavior should be expected for the fix-up of EF Core Loading of Related Data

I'm working on a read heavy api for the company and I'm validating the performance of each part on the reading flow. We utilize EF Core to interact with the database and most of our queries has eager loading enabled for fetching the related data. I take a look at the documentation and there is a quote in the documentation brings me confusion

Entity Framework Core will automatically fix-up navigation properties to any other entities that were previously loaded into the context instance. So even if you don't explicitly include the data for a navigation property, the property may still be populated if some or all of the related entities were previously loaded.

The quote only says EF Core will loaded automatically but doesn't indicate when it will expire, not even mentioning do devs have option to disable it. Such blackbox would makes me hard to consolidate the plan of improving the performance. So if anyone could explain that it could be a huge help.

Thanks

question from:https://stackoverflow.com/questions/65892964/what-is-the-behavior-should-be-expected-for-the-fix-up-of-ef-core-loading-of-rel

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...