That left me with one question: How to represent the <set> in .Net? There is no built-in Set type. However, NHibernate solved that by using the Iesi.Collection.dll, which is part of the NHibernate download. On the blog of rextang I learned this mapping:
| <bag> | IList |
| <list> | IList |
| <set> | Iesi.Collections.Iset (from the Iesi.Collections.dll assembly in the \bin folder of the NH distribution) |
| <map> | IDictionary |
And it works!
Geen opmerkingen:
Een reactie posten