Automapper has a very nice extensions for getting projections.
In BL of our application we can just define methods like this:
IEnumerable<TEntityProjection> GetProjections()
{
return _context.EntitiesSet.Project().To<TEntityProjection>();
}
This helps BL to stay quite simple. We do not need many different methods for each projection variant.
But... WCF service does not support open generics.
So I'm looking for the solution which allows service clients to get only desired properties of the entity.