problem with NHibernate one-to-many relationship Collection with cascade
问题 I have AssetGroup entity with has a one-to-many relation with Asset entity. There is a Entity base class which overrides Equals and GetHashCode . I am following the example of ch 20 parent child <?xml version="1.0" encoding="utf-8" ?> <hibernate-mapping xmlns="urn:nhibernate-mapping-2.2" assembly="TestNHibernate" namespace="TestNHibernate.Models" auto-import="true"> <class name="AssetGroup"> <id name="Id" column="Id" type="guid"> <generator class="guid"></generator> </id> <property name="Name