expressionvisitor Questions
4
Solved
I am trying to replace the parameter type in a lambda expression from one type to another.
I have found other answers on stackoverflow i.e. this one but I have had no luck with them.
Imagine for ...
Duff asked 11/7, 2016 at 21:28
4
Solved
I know from the MSDN's article about How to: Modify Expression Trees what an ExpressionVisitor is supposed to do. It should modify expressions.
Their example is however pretty unrealistic so I wa...
Weider asked 2/1, 2017 at 20:21
1
Solved
I am using the ExpressionVisitor to parse an expression tree to find out if it contains a specified parameter. Once I have found the parameter, there is no point in continuing the traversal.
Is th...
Durable asked 20/4, 2016 at 8:2
1
Solved
Given an Expression<Func<TEntity, bool>> along the lines of
entity => entity.SubEntity.Any(
subEntity => (
(subEntity.SomeProperty == False)
AndAlso
subEntity.SubSubEntity.Fo...
Frimaire asked 27/1, 2016 at 16:24
1
Solved
The System.Linq.Expressions.ExpressionVisitor has a method named VisitExtension which seems to do nothing other than call the VisitChildren method on the Expression being visited.
protected intern...
Oneiric asked 16/12, 2014 at 13:37
2
Solved
Below is a simple demonstration code of my problem.
[TestClass]
public class ExpressionTests
{
[TestMethod]
public void TestParam()
{
Search<Student>(s => s.Id == 1L);
GetStudent(1L...
Verona asked 6/9, 2014 at 22:27
2
Solved
I'm trying to write an ExpressionVisitor to wrap around my LINQ-to-object expressions to automatically make their string comparisons case insensitive, just as they would be in LINQ-to-entities.
ED...
Antibaryon asked 2/7, 2013 at 14:34
2
We're having some issues implementing soft delete functionality with entity framework. The idea is to use a repository which is aware of the EF context. On the level of the repository we implemente...
Minnieminnnie asked 6/10, 2012 at 15:5
1
Solved
I want to combine two LambdaExpressions without compiling them.
This is what it looks like if I do compile them:
public Expression<Func<TContainer,bool>> CreatePredicate<TContaine...
Propagate asked 19/3, 2011 at 12:7
2
Solved
I'm looking for a way of parsing a conditional expression to a string.
The best example I can think of is LINQ-to-SQL. It uses ExpressionVisitors to format "Where" clauses. Example:
from ...
Compaction asked 17/11, 2010 at 1:57
1
Solved
Before someone shouts out the answer, please read the question through.
What is the purpose of the method in .NET 4.0's ExpressionVisitor:
public static ReadOnlyCollection<T> Visit<T>...
Transarctic asked 5/7, 2010 at 17:27
1
© 2022 - 2024 — McMap. All rights reserved.