title: "Cannot convert lambda expression to type 'Type' because it is not a delegate type" keeps showing
body: <p>Im trying to build a simple api with .net using EntityFrameworkCore and Identity.I thought I was using a good configuration for my relationships but now the error "Cannot convert lambda expression to type 'Type' because it is not a delegate type" keeps showing where nothing appeared before.
  This is the code im using on this entity:</p>
  
  <pre><code>    public class ApplicationUserConfiguration : IEntityTypeConfiguration&lt;ApplicationUser&gt;
  {
      public void Configure(EntityTypeBuilder&lt;ApplicationUser&gt; builder)
      {
  
          builder.HasKey(x =&gt; x.Id);
          builder.Property(x =&gt; x.Id).ValueGeneratedOnAdd();
          builder.HasOne(x =&gt; x.Country).WithMany(x =&gt; x.ApplicationUsers).HasForeignKey(x =&gt; x.Id);
          builder.HasOne(x =&gt; x.Gender).WithMany(x =&gt; x.ApplicationUsers).HasForeignKey(x =&gt; x.Id);
  
      }
  }
  </code></pre>
  
  <p>I don't know what else to do. I would be very grateful if you could help.
  I have a public repo with all the code, dont be afraid to take a look in case you need.<a href="https://github.com/nachocebey/Site" rel="nofollow noreferrer">https://github.com/nachocebey/Site</a></p>
  
  <p>Thanks a lot!</p>