Entity Framework Extensions Collection
- Include: allows to configure the eager load with expressions rather than strings.
- EnsureLoad: allows to load a collection or reference safely with lazy load.
- LoadByKey: If an object is in the context this method returns it. Otherwise return the object from the database.
- ToTraceQuery: similiar to .ToTraceString( ) but better🙂.
Download the code of this extensions from here.