Linq Expression string with inline values
I am trying to build expression strings for use with IOC extended nHydrate. When I call ToString() on my expression I get something like this:
employee => employee.Username == value( S开发者_C百科ome type name here )
Is there a way to resolve that value call to the actual value?
employee => employee.Username == "Captain Spiffy"
Doing a ToString() would only fetch you the end expression result, If it is a real expression tree, Like a Expression> then you can traverse the expressions tree using the Expression Visitor class. Make sure this is not a Func!
-Fahad
精彩评论