public class Foo
{
public string FooId{get;set;}
public Boo Boo{get;set;}
}
public class Boo
{
public string BooId{get;set;}
public Foo Foo{get;set;}
}
I was trying to do this in Entity Framework when I got the error:
Unable to determine the principal end of an association between the types
‘ConsoleApplication5.Boo’ and ‘ConsoleApplication5.Foo’.
The principal end of this association must be explicitly configured using either the
relationship fluent API or data annotations.
I have seen questions on StackOverflow with a solution for this error, but I want to understand what the term “principal end” means.