[fluent-nhib] Re: Dictionary mapping problem

2011-05-23 Thread James Gregory
I agree :) -- 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 opti

[fluent-nhib] Re: Dictionary mapping problem

2011-05-20 Thread mynkow
Sounds good :) 10x JG The current mapping is ugly... -- 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+

[fluent-nhib] Re: Dictionary mapping problem

2011-05-20 Thread James Gregory
Cool, glad you've got it sorted. Dictionary mappings are something that'll be cleaned up for the next release. They're nasty as it stands. -- You received this message because you are subscribed to the Google Groups "Fluent NHibernate" group. To post to this group, send email to fluent-nhiberna

[fluent-nhib] Re: Dictionary mapping problem

2011-05-19 Thread mynkow
Ok, I handled this: HasMany(x => x.LocalizationResource).AsMap(index => index.Column("`key`").Type(), element => element.Column("value").Type()).Inverse().Not.LazyLoad().Table("localization_resources"); -- You received this message because you are subscribed to the Google Groups "Fluent NHib

[fluent-nhib] Re: Dictionary mapping problem

2011-05-19 Thread mynkow
PS: how to specify the entity/table where NHibernate should search for the columns specified? -- 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

[fluent-nhib] Re: Dictionary Mapping

2010-03-08 Thread Felipe Leusin
Thanks Paul, It's hard to find you're answer when searching StackOverflow. Anyway after further reading I noticed that the best implementation would be for my Teams collection actually be a KeyedCollection but since that's kinda hard to implement with NHibernate (gotta mess with IUserCollectionType