Ok, I'm lost. Why is the 1st function WRONG (squiglies in the lamda expression), but the 2nd one is RIGHT (meaning it compiles)?
public static Expression<Func<IProduct, string, bool>> IsValidExpression(string val)
{
return (h => h.product_name == val);
}
public static Expression<Func<IProduct, bool>> IsValidExpression2()
{
return (m => m.product_name == "ACE");
}