Ejemplo n.º 1
0
        public static Expression WithTranslations(Expression expression, TranslationMap map)
        {
            Argument.EnsureNotNull("expression", expression);
            Argument.EnsureNotNull("map", map);

            return(new TranslatingVisitor(map).Visit(expression));
        }
Ejemplo n.º 2
0
            internal TranslatingVisitor(TranslationMap map)
            {
                Argument.EnsureNotNull("map", map);

                this.map = map;
            }
Ejemplo n.º 3
0
        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)));
        }