IUserType.  Look at my answer here: 
http://stackoverflow.com/questions/320195/nhibernate-valuetype-collection-as-delimited-string-in-db

You will have to change NullSafeGet and NullSafeSet to convert between Guid and 
string.

Also, since this post predates FNH, I don't cover that in my answer.  Use 
something like .CustomType<DelimitedGuidList>() in your  FNH mapping of that 
property.

Tim


On Friday, May 4, 2012 at 9:54 AM, mynkow wrote:

> Hi
> 
> I have two tables: Orders and Products. The order object has a list<Guid> of 
> products. How can I map this? At the moment I get: Association references 
> unmapped class: System.Guid
> 
> 10x 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Fluent NHibernate" group.
> To view this discussion on the web visit 
> https://groups.google.com/d/msg/fluent-nhibernate/-/N7dARRmza00J.
> To post to this group, send email to fluent-nhibernate@googlegroups.com 
> (mailto:fluent-nhibernate@googlegroups.com).
> To unsubscribe from this group, send email to 
> fluent-nhibernate+unsubscr...@googlegroups.com 
> (mailto:fluent-nhibernate+unsubscr...@googlegroups.com).
> For more options, visit this group at 
> http://groups.google.com/group/fluent-nhibernate?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Fluent NHibernate" group.
To post to this group, send email to fluent-nhibernate@googlegroups.com.
To unsubscribe from this group, send email to 
fluent-nhibernate+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/fluent-nhibernate?hl=en.

Reply via email to