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