0

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( Some type name here )

Is there a way to resolve that value call to the actual value?

employee => employee.Username == "Captain Spiffy"
Dave Swersky
  • 34,502
  • 9
  • 78
  • 118
Nick Daniels
  • 922
  • 8
  • 13

1 Answers1

1

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

Fahad
  • 858
  • 1
  • 8
  • 15