Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个ObjectStateEntry“条目”。我需要像这样从这个“条目”中获取一个属性值,但我不知道如何指定我想要的属性。我用entry.OriginalValues(propName)但是然后呢?
ObjectStateEntry
entry.OriginalValues(propName)
据我了解,您可以尝试这样的事情:
entry.CurrentValues.Item[propName];
或者
entry.CurrentValues.GetValue(entry.CurrentValues.GetOrdinal(propName))