score:1
it seems to me you need to modify code for expression visitors that are affected by this (those that evaluate to bool i assume):
visitbinaryexpression
whenexpression
isexpression.equal
- the case when your field is being evaluated to bool, you can substitute
fieldname
or `fieldname2' (i don't know the specifics of your solution).
from the code you've posted, i could do something like: * for vb-comparison case i would just create new expression, and visit it with another visitor that would handle aliases:
expr = expression.equal(left, right) // left and right i would fetch from methodcallexpression arguments property
visitequal(expr)
and then visitequal
should just build or expressions basing on the aliases.
Source: stackoverflow.com
Related Query
- Linq expression visitor expanding member comparison to multiple member comparisons
- How to reuse a linq expression for 'Where' when using multiple source tables
- Selecting multiple columns with linq query and lambda expression
- Comparison : LINQ vs LAMBDA Expression
- Does this LINQ code perform multiple lookups on the original data?
- LINQ multiple join IQueryable modify result selector expression
- Linq - Using array in Lambda expression to fetch multiple records
- C# multiple variables in lambda expression inside LinQ query
- LINQ member expression getting column name
- LINQ Source Code Available
- multiple orderby in this linq code
- Is there a way to compare multiple values in a linq expression to a generic list?
- Using a member access lambda expression to parametrise a LINQ to SQL predicate
- Get Except of multiple nested dictionaries using LINQ expression
- LINQ lambda expression to replace multiple characters in a string?
- LINQ Dynamic Expression API, predicate with DBNull.Value comparison
- Convert linq query expression with multiple froms into extension method syntax
- LINQ expression that will match multiple bulk inputs
- creating Linq to sqlite dbml from DbLinq source code
- Linq to Sql: Optimizing lamba expression - clean code
- Multiple Join Statements with LEFT JOIN to LINQ Expression syntax
- Linq expression tree string comparison
- Fluent LINQ query with multiple join conditions, one of which being a simple equals and another a less than comparison between ids
- Linq expression multiple left outer join error
- Why is my LINQ Expression with multiple parameters not compiling?
- Linq expression with multiple input parameters
- linq to sql multiple Where() statements not creating a single expression
- How to make linq expression with multiple parameters
- LINQ expression with multiple methods
- Creating dynamic linq expression OData for multiple conditions for filter Contains?
More Query from same tag
- LINQ merge List<IEnumerable<T>> into one IEnumerable<T> by some rule
- Distinct and order list LINQ
- mscorlib error on LINQ
- Want to convert c# multiple Linq into one Linq query?
- Recursive linq to get infinite children
- How to merge n List<Dictionary<string, string>> into a Dictionary using Linq
- Is there a way to use over with order by clause in linq?
- Is there a LINQ-oriented method to quicky evaluate nested lists in dictionaries
- boolean Contains does not support conversion to SQL
- .NET reflection: how to get properties defined on partial class
- Custom Projection Operator using LINQ
- Is it possible to convince the Entity Framework to make an expression when calling a method from a select?
- How to get all of relational records using LINQ
- Linq select row where columns nth character = x
- c# linq group by - Access other properties inside select new
- Grouping data with a LINQ query
- Initialize listbox in c# with a list
- how to compare two list and subtract single column value in c#
- How to write this LINQ Query
- Multiple context queries inside a query
- Linq Group selection
- Linq items in a list exist in another list
- LINQ execution flow (homework)
- How to convert IEnumerable to Subsonic collection?
- Assign foreach IEnumerable<string> to Object.StringId using Linq
- Get XElement.Value on multiple elements by element name
- Entity Framework - How many trips to the database on DeleteObject
- Convert an integer range to a list of strings using LINQ
- Ambiguous call when using LINQ extension method on DbSet<T>
- How to replace datetime in var list with date linq