This project is read-only.


Nov 1, 2010 at 12:56 PM

What is the preferred method for receiving the PropertyChanged events on items in the collection class?  For example, I have an nHydrate-generated "EquipmentCollection" bound to a BindingSource and BindingNavigator and hooked to various TextBox fields (Winforms).  I can traverse the collection just fine, all the bindings work, and persistence is fine.  But, there are no events available from the collection, and, I don't see a way of linking to the PropertyChanged event on the "Equipment" class. Should not the generated collection class be an ObservableCollection, or, provide some type of event when an item in the collection is changed?

Nov 2, 2010 at 7:39 PM

hi, as a workaround, in our applications, we are converting the Collection to List (.ToList()) then to BindingList before binding it to a UI control. BindingList takes care of the event notifications. However, AddNew() of the BindingList is an issue, as it tries to invoke the constructor of the CollectionItem which is not available.