title: 'propertyName' cannot be used as a property on entity type 'typeName' because it is configured as a navigation
body: <p>I have an entity <code>user</code> with the following:</p>
  
  <pre><code>public class User
  {
      [Key, Required]
      public int Id { get; set; }
      public int GenderId { get; set; }
      public virtual Gender Gender { get; set; }
  }
  </code></pre>
  
  <p>In <code>gender</code>:</p>
  
  <pre><code>public class Gender
  {
      [Key, Required]
      public int Id { get; set; }
      public virtual ICollection&lt;User&gt; Users { get; set; }
  }
  </code></pre>
  
  <p>Then, inside my <code>DbContext</code>, I have:</p>
  
  <pre><code>protected override void OnModelCreating(ModelBuilder modelBuilder)
  {
      modelBuilder.Entity&lt;User&gt;(user =&gt;
      {
          user
          .HasOne(x =&gt; x.Gender)
          .WithMany(x =&gt; x.Users)
          .HasForeignKey(x =&gt; x.GenderId);
      }
  
      user.HasIndex(x =&gt; x.Gender);
  }
  </code></pre>
  
  <p>When I run <code>dotnet ef add migration User</code>, I am getting the error:</p>
  
  <blockquote>
    <p>'Gender' cannot be used as a property on entity type 'User' because it
    is configured as a navigation.</p>
  </blockquote>