title: the entity type is not part of the model for the current context strange error
body: <p>My DB context initialization is as below. Everything works fine. After stop and restart project on visual studio debug mode the error 'the entity 'x' type is not part of the model for the current context' occurs for the same operation.In debug mode, I see this 'x' entityType is invoked.</p>
  
  <p>But if I rebuild entity project everything works fine until next debug restart.</p>
  
  <p>Any idea?</p>
  
  <pre><code>public class FsDbContext : DataContext&lt;DbContext&gt;, ITransientDataContext
  {
      protected override void OnModelCreating(DbModelBuilder modelBuilder)
      {
          //MappingAssemblies.All.ForEach(assembly =&gt; modelBuilder.Configurations.AddFromAssembly(assembly));
  
          var addMethod = typeof(ConfigurationRegistrar).GetMethods().Single(m =&gt; m.Name == "Add"
              &amp;&amp; m.GetGenericArguments().Any(a =&gt; a.Name == "TEntityType"));
  
          MappingAssemblies.All.ForEach(assembly =&gt;
          {
              var configTypes = assembly.GetTypes().Where(t =&gt; t.BaseType != null 
                  &amp;&amp; t.BaseType.IsGenericType 
                  &amp;&amp; t.BaseType.GetGenericTypeDefinition() == typeof(EntityTypeConfiguration&lt;&gt;));
  
              foreach (var type in configTypes)
              {
                  var entityType = type.BaseType.GetGenericArguments().Single();
  
                  var entityConfig = assembly.CreateInstance(type.FullName);
                  addMethod.MakeGenericMethod(entityType)
                    .Invoke(modelBuilder.Configurations, new object[] { entityConfig });
              }
          });
  
      }
  }
  </code></pre>