Skip to main content

All Questions

Filter by
Sorted by
Tagged with
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....
Zeeshan Zahoor's user avatar
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 ...
bahadir arslan's user avatar
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 ...
JTI's user avatar
  • 19
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<...
smartcaveman's user avatar
  • 42.3k
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 ...
TCM's user avatar
  • 16.9k