Allow LoadSingleById to selectively load references
Would like to replicate the functionality from this feature request in LoadSingleById: http://servicestack.uservoice.com/forums/176786-feature-requests/suggestions/6656885-allow-loadselect-to-selectively-load-references

This has been implemented by Johann Klemmack and is now available in v4.0.48, see examples at: https://github.com/ServiceStack/ServiceStack/blob/master/docs/2015/release-notes.md#custom-load-references
-
Johann Klemmack commented
Added in the pull request below. Mythz further extended it with support to return specific fields in an anonymous type.
https://github.com/ServiceStack/ServiceStack.OrmLite/pull/469
-
Johann Klemmack commented
Oh - I like that feature, and the updated interface. I'll see if I can look into it next week.
-
Blake Blackshear commented
Also, can we use an expression to get typing similar to below?
db.LoadSingleById<Lab>(..., include: new[] { “Licenses”, “LabTests" }) // current
db.LoadSingleById<Lab>(..., include: l => new { l.Licenses, l.LabTests }) // wantThis would be similar to the onlyFields parameter of the UpdateOnly method.