我有一个这样的实体:
public class Course
{
public int Id { get; set; }
public string Name { get; set; }
public virtual ICollection<Course> Prerequisites { get; set; }
public virtual ICollection<Course> Equivalents { get; set; }
public Course()
{
Prerequisites = new HashSet<Course>();
Equivalents = new HashSet<Course>();
}
}
我想为“先决条件”和“等效项”创建不同的表。我该如何配置它?