I'm attempting to set up my database using the Entity Framework 7 fluent API to add a self-referencing many-to-many relationship. The class in question looks like:
public class Definition
{
// Some properties
public virtual ICollection<Definition> AllowedChildDefinitions { get; set; }
}
where the intended relationship is that each definition can have an arbitrary amount of children, of any instance. I would expect a separate table with parent/child columns, where each parent can have multiple children, and each child can be on multiple parents.
There are examples of many-to-many, and examples of self-referencing tables, but I can't work out how to combine the two.