hi all, i'm using nh 3.2.0.1003 in a net 2.0 project
i have this 2 classes
class ClassA
(
Guid Id
)
class ClassB
(
Guid Id
IDictionary<ClassA, bool> Data
)
i map them with xml, for the property Data i use
<map name="Data">
<key column="ClassB_Id" />
<index-many-to-many class="ClassA" column="ClassA_Id" />
<element column="State"
type="System.Boolean"
not-null="true"/>
</map>
by default it doesn't work becouse dictionary uses default
object.equal implementation,
i want know if i can set the custom implementation of
iequalitycomparer used by Data property or if i can only
overide equals in classB (as in
http://nhforge.org/blogs/nhibernate/archive/2008/09/06/identity-field-equality-and-hash-code.aspx).
if i can set my custom iequalitycomparer will be better becouse i
don't dirty my class ClassA.
thanks
--
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.