Fluent NHibernate doesnt like this, throwing an error '{"Association references unmapped class: System.String"}'. Ok fine, I can see why this would cause a problem - but whats the best solution?
I dont really want it to store a delimited list of strings in a single field, this would get ugly if my list contains many strings.
I also dont really want a table 'string', for obvious reasons.
I guess I can solve this by wrapping my List inside a class,but this feels a little heavyweight. I'm starting to think its the best solution though.
Whats the best way to get Fluent NHibernate to handle this?
edit for clarification: I totally expect these values to be stored in another table. I thought perhaps that I may have been able to setup some automapping convention that instructs NHibernate 'If you see a class X that contains List<some primitive type>, then go ahead and automatically create a reference table that maps to this collection.
It feels a bit heavy to go and wrap every single collection in a class. If that is the best solution however, then so be it.