2010/10/1 Phil <[email protected]> > //All business rules for the Bar collection are > //encapsulated on the BarCollection object > [UniqueMembers(Message = "There are duplicate Foos")] > [SomeOtherValidator] >
You MUST to use a SET in your domain model. If you want to add ui validation logic, you should work this on presenters/viewmodels. BTW; if you write your own collections, you must create your Persistent** version of your collection. NHibernate use his own set of collection for lazy loading support, but you can inherit from them and create your own set of Persistent versions. I did it once for support the WPF collection ObservableCollection<T>. -- You received this message because you are subscribed to the Google Groups "nhusers" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/nhusers?hl=en.
