Vincent,
In DevForce PropertyChanged is also triggered when the entities are loaded.
I'm assuming you are setting the PropertyChanged event handler in the entity's constructor. A couple reasons not to do that:
1) Setting the event handler in the constructor will not work in n-tier because serialization does not use the constructor;
2) If you load to many entities, you'd be setting to many event handlers (one for each entity) and that's not very efficient.
I'd suggest you use EntityGroup.EntityPropertyChanged instead:
var eGroup = mgr.GetEntityGroup(typeof(Employee));
eGroup.EntityPropertyChanged += new EventHandler<EntityPropertyChangedEventArgs>(eGroup_EntityPropertyChanged);
=======================================
void eGroup_EntityPropertyChanged(object sender, EntityPropertyChangedEventArgs e) {
if (e.Property.Name == "FirstName") {
Kind regards,
Silvio.