Walaa wrote:
You may build your own version of the ORMSupportClasses dll and change its accessor to protected.
I'd make it protected internal, as the framework uses the method to set the field's value during a fetch.
The method is public because it is used to set the ID in readonly PK fields for operations directly on the DB.
Also, could you direct these developers to stop using this method? I mean, they can also set CurrentValue and the IsChanged flag, so it's not as if it's impossible to do.
Also, in a normal object, if the property is only a getter, it's still possible to set private member variables, if the developer wants to. I.o.w.: the developers using the code should follow procedure how to use your code.