NHibernate Generics & IList<T>
Here is an interesting question, I got several reqeusts to add an EntityList<T> to NHibernate Generics. One of the more interesting attributes on NHibernate Generics is that I can execute an action when an item is added or removed to the set. The problem that I've now is adapting it to the indexer of IList<T>, how I should behave with regard to it? There are three possibilities:
- Override a value with the same value - do nothing
- Override a value with a new value - call remove on the old value and add on the new value
- Override a value with a ne value already on the list - what do I do here?
Any suggestions?
Comments
Comment preview