My issue doesn't have anything to do with when I expect deferred
execution to happen or the way I'm composing my queries or when I
expect the mapping to happen. It's simply that I'm seeing my
IQueryable, when passed to Automapper, is getting called twice, both
times identical executions (one of the two being superfluous). My
issue is about this duplicate, in my case unnecessary, database round
trip, nothing more, nothing less.
Again this isn't a showstopper or anything, I was just wondering if
there was someone out there who knew why this was or how to avoid it.
It would be convenient for me to pass IQueryables into AutoMapper but
only if AutoMapper will execute them against their store once and only
once.