mdissel wrote:
I'm adding logging functionality to the generated code (using selfservicing), but i can't get a the EnitityField.OriginalValue because it's declared as internal. Why is this property internal?
OriginalValue is used to store the value when an edit cycle starts in a databinding scenario. This means that when you press ESC after you've edited a grid cell, you'll get the original value back.
i know it doesn't reflect the database value (the value can change when you use databinding), but i don't use databinding.
In the upcoming runtime library revision, I've added DbValue to the fields, which will contain the value read from the database (and CurrentValue will contain this value initially as well of course), except for when it is null, then the default value is set, so it contains the initial value set to CurrentValue after a fetch.
This allows you to add optimistic concurrency based on original field values and also better logging.