i'm trying to get an insert/retrieve/update/delete etc. test application up and running using nHibernate.
I'm using the parent/child example that comes with nHibernate as a starting point.
So, there's a parent and a child, and the nUnit test adds a couple children to the parent class. I now want to create a method/property on the Parent class that allows you to retrieve a single child. Like an Item property. The "Children" property of the Parent class is of type Iesi.Collections.ISet. I don't see any "Item" property on this class, nor do I see it on DictionarySet, Set, SynchonizedSet etc...
Can someone please tell me a standard way of implementing this kind of "basic" functionality on a parent class , allowing you to retrieve a single child object?
Thanks
|