I guess it would be possible to create an IUserCollectionType which handles this.
/G On Jan 10, 2013, at 1:42 AM, [email protected] wrote: > We are mapping a dictionary of references using strings as the key but when > the map is loaded from the DB, it allows casing differences which we do not > desire. When we create the POCO object, we initialize the dictionary to a > case insensitive key using the appropriate constructor but there does not > appear to be a way to "tell" NHibernate to do the same. > > How do I change this default behavior such that we do not need to create and > maintain our own PersistentGenericMap type. I am currently thinking that I > could inherit from the NHibernate type and then add some code to the > constructor to copy the content into a new case-insensitive dictionary but I > am not sure that will simply work. > > Any ideas on how to achieve this from the infrastructure standpoint rather > than some custom logic to make the key lowercase during an event or business > layer? > > -- > You received this message because you are subscribed to the Google Groups > "nhusers" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/nhusers/-/XGIWv8sIXIIJ. > 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. -- 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.
