When I try the following
Friend Class ArticleMap
Inherits ClassMapping(Of Article)
Public Sub New()
Bag(Of ArticleToStatus)(Function(x) x.States,
Sub(t)
End Sub)
End Sub
End Class
NHibernate throws an Exception "Invalid expression type: Expected
ExpressionType.MemberAccess, Found Convert" when mapping the entities.
This only occurs when the property "States" is of type IList(Of
ArticleToStatus). If it is an IEnumerable(Of ArticleToStatus) it works.
thanks for your help.
--
You received this message because you are subscribed to the Google Groups
"nhusers" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/nhusers.
For more options, visit https://groups.google.com/groups/opt_out.