public class Parent
{
public int ID { get; set; }
public IEnumerable<Child> Children { get; set; }
}
public class Child
{
public int Parentid { get; set; }
public int Childid { get; set; }
}
However, an exception is thrown that states the key can't be determined to produce the mapping.
These should support the convention:
However, an exception is thrown that states the key can't be determined to produce the mapping.