سؤال

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.

هل كانت مفيدة؟

المحلول

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

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top