title: What does it mean for an entity type to be in "shadow state"?
body: <p>In my ASP.NET Core 1.0, MVC6, EF7 web application, I'm adding a migration that adds a new related table (&amp; corresponding model). I have the following model snapshot:</p>
  
  <pre><code>[DbContext(typeof(ApplicationDbContext))]
  partial class ApplicationDbContextModelSnapshot : ModelSnapshot
  {
      protected override void BuildModel(ModelBuilder modelBuilder)
      {
          modelBuilder
              .HasAnnotation("ProductVersion", "7.0.0-rc1-16348")
              .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  
          modelBuilder.Entity("Salesboost.Models.ApplicationUser", b =&gt;
          {
              b.Property&lt;string&gt;("Id");
              b.Property&lt;int?&gt;("TeamId");
              b.HasKey("Id");
              // -- &lt;unrelated fields snipped&gt; --
          });
  
          // -- &lt;snipped&gt; --
  
          modelBuilder.Entity("Team", b =&gt;
          {
              b.Property&lt;int&gt;("Id").ValueGeneratedOnAdd();
              b.Property&lt;string&gt;("Name").IsRequired();
              b.Property&lt;string&gt;("ManagerId").IsRequired();
              b.HasKey("Id");
          });
  
          modelBuilder.Entity("Team", b =&gt;
          {
              b.HasOne("ApplicationUser", "Manager")
                  .WithOne("TeamManaging")
                  .HasForeignKey("ManagerId");
          });
      }
  }
  </code></pre>
  
  <p>Team.cs:</p>
  
  <pre><code>public class Team
  {
      public int Id { get; set; }
      public string Name { get; set; }
      public string ManagerId { get; set; }
  
      public virtual ApplicationUser Manager { get; set; }
      public virtual ICollection&lt;ApplicationUser&gt; Members { get; set; }
  }
  </code></pre>
  
  <p>ApplicationUser:</p>
  
  <pre><code>public class ApplicationUser : Microsoft.AspNet.Identity.EntityFramework.IdentityUser
  {
      public int? TeamId { get; set; }
  
      public virtual Team Team { get; set; }
      public virtual Team TeamManaging { get; set; }
  }
  </code></pre>
  
  <p>When I attempt to update the database, dnx gives me the following error:</p>
  
  <blockquote>
    <p>The navigation property 'Manager' cannot be added to the entity type 'Team' because the entity type is defined in shadow state and navigations properties cannot be added to shadow state.</p>
  </blockquote>
  
  <p>What does it mean for an entity type to be in "shadow state"? Is there a way around this?</p>