I’m new to Code First, and try to build my data model.
All is ok, except one issue, i try to map next things:
public class Something
{
...
public virtual Layer Layer1 { get; set; }
public virtual Layer Layer2 { get; set; }
public virtual Layer Layer3 { get; set; }
...
}
public class Layer
{
...
public virtual Something Something { get; set; }
...
}
The Something class maps ok, but relation backwards from Layer to Something don’t maps at all, in database table there are null, i try almost everything, for now i don’t have any idea…
Why Layer can’t refer to Something?
Thanks in advance.
Together, this results in: