Top "Expression-trees" questions

Expression Trees are an abstract representation of code in a tree structure where each node of the tree represents a programming construct (conditional, assignment, method call, etc.

Working with nullable types in Expression Trees

I have an extension method to dynamically filter Linq to Entities results using string values. It works fine until I …

c# entity-framework linq lambda expression-trees
Internal .NET Framework Data Provider error 1025

IQueryable<Organization> query = context.Organizations; Func<Reservation, bool> predicate = r => !r.IsDeleted; query.Select(o =&…

c# .net entity-framework entity-framework-4 expression-trees
Create Func or Action for any method (using reflection in c#)

My application works with loading dll's dynamically, based on settings from the database (file, class and method names). To facilitate, …

c# reflection lambda expression-trees
Lambda Expression Tree Parsing

I am trying to use Lambda Expressions in a project to map to a third party query API. So, I'm …

c# lambda expression-trees
How Build Lambda Expression Tree with multiple conditions

Note: I know it's much simple to create this using dynamic linq but I want to learn. I want to …

c# linq lambda expression-trees
How to create a Expression.Lambda when a type is not known until runtime?

This is best explained using code. I have a generic class that has a method that returns an integer. Here …

c# generics lambda expression-trees
Construct LambdaExpression for nested property from string

I am trying to create a lambda expression for a nested property at run-time from the name of the propert. …

c# .net linq lambda expression-trees
C# 4 "dynamic" in expression trees

I'm trying to figure out how to put all the pieces together, and would appreciate a concrete source code sample …

c# dynamic c#-4.0 expression-trees
How to wrap Entity Framework to intercept the LINQ expression just before execution?

I want to rewrite certain parts of the LINQ expression just before execution. And I'm having problems injecting my rewriter …

c# linq entity-framework expression-trees
What's the purpose of the Expression class?

I'm wondering what exactly is the difference between wrapping a delegate inside Expression<> and not ? I'm seeing Expression&…

c# lambda expression-trees