Hacker News new | past | comments | ask | show | jobs | submit login

This example is incomplete. We need to see what the enclosing transaction scope looks like.



That's sort of my point - when you see a random dbcontext read inside a function you have no idea what the fetch will actually do. It might just return an object that was already fetched elsewhere in the context and modified but not saved. It might return the first value. It will automatically plug related entities into navigation collections - even if they are queried completely independently.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: