I have a class that I need to map that looks a bit like this
public class Foo
{
public string Name { get; set; }
// other stuff
public IDictionary<Bar, decimal> Bars { get; set; }
}
my question is how can I map this with NHibernate, I was thinking I can treat the dictionary as a HasMany, since I can recreate a Bar from a string, however it feels a bit crude and I wonder if there is a better way
cheers
1 Answer