I have to 2 entities like this:
class A
{
int id { get; set; }
string Name { get; set; }
}
class B
{
int id { get; set; }
A RefToA { get; set; }
string Name { get; set; }
}
How can I map this 2 classes so that i would have 3 tables like this:
table A with 2 columns: id and name
table B with 2 columns: id and name
table AB with 2 columns: AId and BId