All Questions
5 questions
3
votes
0
answers
692
views
How to modify MemberBinding expression using Expression Visitor
I am trying to modify MemberBinding expression using Expression visitor. But I am getting an error when I try to compile the modified expression which says:
'variable 'source' of type 'EFTest.Views....
0
votes
0
answers
532
views
ExpressionVisitor with Multiple Types
I am using ExpressionVisitor to convert type of Expression<Func<T1,bool>> to Expression<Func<T2,bool>> and it works very well. But i noticed that if expression contains another ...
2
votes
2
answers
1k
views
ExpressionVisitor soft delete
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 implemented a ...
5
votes
1
answer
754
views
How to build a LambdaExpression from an existing LambdaExpression Without Compiling
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<...
1
vote
5
answers
816
views
Can we delete clauses from linq expression?
I was wondering whether it's possible to add/remove a where clause from a linq expression/ query operators.
Eg :-
var qry = from e in emp where(e => e.salary > 5000) select e;
Is it possible ...