Hi,
I have implemented a sorted collection like this:
...
<set name="CompleteSolutions" cascade="all" sort="Business.Data.SolutionComparer, Business">
<key column="QuestionId" />
<one-to-many class="Business.Data.CompleteSolution, Business"></one-to-many>
</set>
- mapped to an ISet in the business entity
...
But it only gets me one object, although there are several in the database.
I tried to use a bag instead like this:
<bag name="CompleteSolutions" cascade="all">
<key column="QuestionId" />
<one-to-many class="Business.Data.CompleteSolution, Business"></one-to-many>
</bag>
- mapped to an IList in the business entity.
And this gets me all the objects, but obviously not sorted the way I wanted.
Anyone know why this might be?
/David
|