help you fix your problem Have a string property, if the need be have a custom class represnting each value inside the set and each time the property nhibernate uses to set the value convert it into the custom class using its constructor for the conversion.
How to convert Fluent NHibernate mapping to NHibernate Built-in Code Based Mapping
I wish did fix the issue. I have two classes from example using Fluent NHibernate mapping. Fluent NHibernate mapping is commented and I´m trying to make Code Based Mapping, but still appears ArgumentNullException "Value cannot be null.". How to make it right? , I found the solution already. Mapping should be done this way:
it helps some times I think what you are trying to do is specify that you are using mysql. When I have done this I have used an NHibernate confiuration file with a line stating the driver_class: NHibernate.Driver.MySqlDataDriver
NHibernate Could not compile the mapping document using MySql
wish of those help It looks like the namespace in the mapping "WindowsFormsApplication1.Domain" differs from the actual domain namespace "APIDB.Domain". The assembly name could also be wrong but I don't know what the generated assembly name is for your project.