public static Expression WithTranslations(Expression expression, TranslationMap map) { return(new TranslatingVisitor(map).Visit(expression)); }
internal TranslatingVisitor(TranslationMap map) { this.map = map; }
public static IQueryable <T> WithTranslations <T>(this IQueryable <T> source, TranslationMap map) { return(source.Provider.CreateQuery <T>(WithTranslations(source.Expression, map))); }