Adding multiple navigation properties of the same type in EF7

Viewed 2678

I have a model that looks like this

public class Issue
{
    public Guid Id { get; set; }

    [Required]
    public User ReportedByUser { get; set; }

    public User ClosedByUser { get; set; }

    public Category Category { get; set; }
}

However, when I run ef migrations add <MigrationName> I am getting the following error:

The navigation 'ReportedByUser' on entity type 'WebProject.Models.Issue' has not been added to the model, or ignored, or target entityType ignored.

I do not get this error when I only have 1 navigational property of type User in the model. How do I make this work with the model above?

2 Answers
Related