Please read the detail of my problem, which is exactly similar to:
http://www.mail-archive.com/[email protected]/msg18775.html

Unable to cast object of type:
'System.Collections.Generic.List`1[ENTITY]' to type
'NHibernate.Collection.IPersistentCollection'.

However, my properties return IList<T> and NOT List<T>.

To summarize: I have a <bag> inside a <component> as nhibernate
mapping.
I always get a cast exception.

If I'm bringing <bag> mapping out of <component> tag, then save\update
works fine.

Is this a bug in nhibernate?

-- 
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.

Reply via email to