NHibernate 3.2 By Code (Conformist) ClassMapping For a Dictionary Property
问题 Assume I have a class "SomeClass" that has a lookup dictionary: DataDictionary; I currently have a mapping in SomeClass.hbm.xml like this: <class name="SomeClass> <id name="ID" type="System.Guid"> <generator class="guid" /> </id> <map name="DictionaryProperty" table="SomeClass_Data"> <key column="SomeClassID" /> <index column="Key" type="System.String" /> <element column="Value" type="System.String" /> </map> </class> I want to use NHibernate's new (version 3.2) By Code mappings. How would I