LINQ in Action roller

Need help with creating dynamic Like statement with Expression objects

Hello everyone, i have spend some time on getting a like expression working in C# with linq. My goal is to build expression with the help of the expression tree. I searched this forum but didnt found anything usefull so far. example: to create: A => A.text == "Text" I use the following code snippet Code Snippet ParameterExpression entity = Expression .Parameter( typeof (TEntity), "entity" ); Expression ColumnExpr = Expression .Property(entity, Column); Expression ValueExpr = Expression .Constant( Read More...
Published Wednesday, April 23, 2008 7:48 PM by MSDN Forums: LINQ Project General
Anonymous comments are disabled

Featured Item

This Blog

Sponsoring

Syndication