Some of my domain classes contain a complex type for a street address. I am capturing a log of my changes, and want to be able to reconstruct the address object from the ObjectStateEntry.CurrentValues
My code is detailed here
And I want to extract the address from CurrentValues as the answer suggests.
I can see the address in the _userObject property in the debugger, but i don't know how to extract it.
I have tried
var obj = entry.CurrentValues[ordinal];
var rec = (DbDataRecord)obj;
what should be next?