I have been looking all around for the correct mapping, with no success.
Got to the point i started finding people who gave up https://groups.google.com/forum/#!topic/fluent-nhibernate/u_MYdOTD1Jk
So - how do you map an
IDictionary<Entity1,Entity2> ?
I would post what i tried, but i'm at my 15~th try now..
public class Entity1Map : ClassMap<Entity1>
{
public Entity1Map()
{
Id(x=> x.ID);
}
}
public class Entity2Map : ClassMap<Entity2>
{
public Entity2Map()
{
Id(x=> x.ID);
}
}
public class Entity3 { public IDictionary<Entity1,Entity2> Dict { get;set; } }
public class Entity3Map : ClassMap<Entity3>
{
public Entity3Map()
{
Id(x=> x.ID);
//DictMap??
}
}
Thanks a lot :)