Fluent nHibernate and mapping IDictionary<DaysOfWeek,IDictionay<int, decimal>> how to?
Posted
by JS Future Software
on Stack Overflow
See other posts from Stack Overflow
or by JS Future Software
Published on 2010-04-10T14:19:32Z
Indexed on
2010/04/10
14:23 UTC
Read the original article
Hit count: 317
Hello,
I have problem with making mapping of classes with propert of type Dictionary and value in it of type Dictionary too, like this:
public class Class1
{
public virtual int Id { get; set; }
public virtual IDictionary<DayOfWeek, IDictionary<int, decimal>> Class1Dictionary { get; set; }
}
My mapping looks like this:
Id(i => i.Id);
HasMany(m => m.Class1Dictionary);
This doesn't work. The important thing I want have everything in one table not in two. WHet I had maked class from this second IDictionary I heve bigger problem. But first I can try like it is now.
© Stack Overflow or respective owner