Oh, and additional question: I'm still using IList<DocumentPart>. Is it necessary to change this to ICollection<DocumentPart>? Does it change anything (besides that IList supports indexer and is "ordered")?
Miha On Mar 29, 10:24 am, Miha V <[email protected]> wrote: > Fabio, thank you for your detailed answers. > > My observations: > > I added the reference to the document, although I don't need it, > really. So I guess, this is something that needs to be done in order > NH know how to do it's kung-fu. > I changed the association to inverse, and it works! It works even if I > omit the transaction. But the delete operation does not work without > transaction. Is this by design? > > I'm using Fluent NHibernate to configure the mappings, and I see that > your code is very different. It has that fluentish feel to it -- is > this NH3 specific? I like Fluent configuration a lot; I also like > integration with NHValidator, so that the "constraints" are where the > entities are. > > Additional two questions: > 1) You asked, WHO WROTE THE MAPPING? I'm not sure I understand it. If > you meant my mapping, it was exported from automappings. If you meant > your mapping, I guess it's generated by AddDeserializedMapping. > > 2) IEqualityComparer -- why is it necessary to implement it? I know > what it is for, but if I don't do comparisons between the elements? > > Thanks, > Miha. > -- 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.
