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