.Ignore() throws NullReferenceException #11354
Labels
closed-fixed
The issue has been fixed and is/will be included in the release indicated by the issue milestone.
type-bug
Milestone
Hey guys, first time around.
I am trying to configure my modelBuilder to generate the first Migration.
When I try to Ignore(x => x.ValueObject) or even Ignore(x => x.AggregateEntity) it throws Object reference not set to an instance of an object at Microsoft.EntityFrameworkCore.Metadata.Internal.InternalModelBuilder.RemoveEntityType(EntityType entityType, ConfigurationSource configurationSource).
What is strange is that it seems that only throws this exception on one modelBuilder.
I put a bit of .Ignore on some entities, but it seems that is not working only with one of them.
This one:
I have tried EF Core 2.0.2 and 2.1.0-preview1-final.
Both throws the same error.
You can find my sample at https://github.com/digogid/eStore.Sample
I was trying to do it running 'eStore.MigrationRunner' as startup project.
When I run 'Add-Migration init -verbose' command it returns:
The text was updated successfully, but these errors were encountered: