The work to implement something give full support to System.Collection.Generic.ISet<T> is completelly possible right now. NH has a injectable CollectionFactory where you can any IPersistentCollectionXyz required by NH. In this moment we can't do it directly in NH because this mean .NET4 as requirement.
If you realy need it, you can do it ;) An example of CollectionFactory is available in uNhAddIns where we have implemented it for ObservableCollection to work with WPF (even collections coming from NH are observable). -- Fabio Maulo El 01/07/2010, a las 05:56, Graham Bunce <[email protected]> escribió: > Fabio - I know what you mean and I'm coming to the state of mind of > "I'm a bit fed up of trying to seperate repository from domain so just > go with it". > > However the problem is that although iesi is open source and is not an > NH specific dll, it's not a BCL collection. So far I've strictly > enforced domain and repository seperation - even handy NH commmands > such as Unproxy are wrapped in a generic way so if I choose to move my > repository from NH to EF, to an XML based repository or anything else > then I know I'm using BCL stuff so most things have a higher chance of > being ok. > > If I ever decide to move to EF then it will be populating my > collections instead of NH, and it most definitely will not use iesi > but probably a Collection<T> or a HashSet<T>. If my domain layer only > uses ICollection<T> (which from what I understand from the JIRA I > still can) and one of these other collections for initialisation, then > I have more chance of doing a drop-in replacement of my NH repository > with an EF one when the time eventually comes. If EF blows up in the > same way NH does over iesi HashedSet<T> then I have to change my > domain layer and seperation is lost. > > I accept it's almost an esoteric argument (hence why I'm almost at the > stage of giving up and going with iesi) but it's a quite important > principle that I (and I'm sure many others) are loathe to surrender > without a good fight. > > -- > 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. > -- 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.
