You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Im currently using EF Core on a large project. My main problem with using it is, I'm unaware of what the intended process is for obtaining data. Is it best practice to let each method that uses the entities and their nested types, assume that the nested objects are populated from outside of the method? Or is it intended that each method should be responsible for obtaining the data that it needs?
Visual example for collecting the data from the start of a unit:
My assumption is that its wiser to have the data present before beginning any logic as one large query is more optimal compared to the alternative several smaller queries (which is more taxing on the database).
The text was updated successfully, but these errors were encountered:
It's really going to be a case-by-case thing. The ORM is a nice layer to work with but in the end it's just a tool to alleviate the burden of managing a load of bespoke SQL statements and data access boilerplate code. Just find something that works, and if you have a true issue with performance or something, you'll have to work out those details for that particular case. It's the wild west and there are no rules. 🤠
Uh oh!
There was an error while loading. Please reload this page.
Im currently using EF Core on a large project. My main problem with using it is, I'm unaware of what the intended process is for obtaining data. Is it best practice to let each method that uses the entities and their nested types, assume that the nested objects are populated from outside of the method? Or is it intended that each method should be responsible for obtaining the data that it needs?
Visual example for collecting the data from the start of a unit:
Visual example for for obtaining the relative data within each method:
My assumption is that its wiser to have the data present before beginning any logic as one large query is more optimal compared to the alternative several smaller queries (which is more taxing on the database).
The text was updated successfully, but these errors were encountered: