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