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