Hi Otis,
This thread was based on our conversation from thread
http://www.llblgen.com/TinyForum/Messages.aspx?ThreadID=14195
I'll try to describe our "problem".
We have a problem with wrong behavior of IsDirty property of entitiy. We have DeviceEntity in hierarchy with it’s DeviceParentEntity in an optional PK-FK relationship. While we create new DeviceEntity we set DeviceParenId for proper value. The problem is when we open second instance of form which visulizes Devices data this new added Device is dirty.
I did something like this while adding new Device:
Main.DataServer.SaveEntity<DeviceEntity>(Main.Token, newDevice, true, true);
newDevice = Main.DataServer.FetchEntity(newDevice, PrefetchPath) as DeviceEntity;
Main.Context.Add(newDevice);
So this new added Device is now in Context. Entity now is not dirty. After that I opened second instance of this Devices form and after fetching data the last added Device was dirty. To be accurate: DeviceParentId field was changed (IsChanged was true) but CurrentValue had same value as DbValue.
We think this could be wrong behavior as after fetch from DB entity becomes dirty.
Kind regards,
TomV