Question

Does anything like QueryableExtensions for Automapper exist for ValueInjecter?

For those unfamiliar with this functionality it allows for the automatic projection of properties to be performed for linq queries so that only the needed columns are selected from the database when projecting an entity to a simple DTO.

Était-ce utile?

La solution

I suppose you need only the needed property getters to be called, try the SmartConventionInjection, this injection will only get the value of the property when it's needed, it also remembers the matching properties between types so that next time it will work faster

https://valueinjecter.codeplex.com/wikipage?title=SmartConventionInjection&referringTitle=Home

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top