I'm trying to do a mapping for the following classes:
public class A {
public virtual int Id { get; private set; }
public virtual IDictionary<MyEnum, B> MyBValues { get; set; }
}
public class B {
public virtual int Id { get; private set; }
}
public enum MyEnum { Value1, Value2, Value3 }
I'd like the resulting tables to look like this:
A
----------------
Id : int
B
----------------
Id : int
MyBValues
----------------
AId : int -- FK to A
BId : int -- FK to B
MyValue : int -- One of the enum values
Any ideas?
Thanks Andy