Get Specific Value from entity.OriginalValues in EFv4
I have an ObjectStateEntry
"entry". I need to get a property value from this "entry" like so开发者_如何学Go, but I don't know how to specify the property I want. I use entry.OriginalValues(propName)
but then what?
As far as I understand you can try something like this:
entry.CurrentValues.Item[propName];
or
entry.CurrentValues.GetValue(entry.CurrentValues.GetOrdinal(propName))
精彩评论