property change on an entity

Mar 2, 2011 at 8:35 AM

why am i getting only the generic propertychange event on an object and not the event on each property as shown in the documentation

Customer customer = Customer.SelectUsingPK(12);

     customer.FirstNameChanged +=
            new EventHandler(customer_FirstNameChanged);

 

am i missing something ?

Giannis


Mar 2, 2011 at 9:38 AM

never mind , found it.

had to enable the respective property at the top level node of the model designer.

Giannis.

Coordinator
Mar 2, 2011 at 12:27 PM

That is right. You must enable the CustomChangeEvents property on the model root.