views:

32

answers:

1

I have an ObjectStateEntry "entry". I need to get a property value from this "entry" like so, but I don't know how to specify the property I want. I use entry.OriginalValues(propName) but then what?

+2  A: 

As far as I understand you can try something like this:

entry.CurrentValues.Item[propName];

or

entry.CurrentValues.GetValue(entry.CurrentValues.GetOrdinal(propName))
Yury Tarabanko
Very nice. Thanks.
davemackey

related questions