I'm trying to generate migrations using the command:
dotnet ef migrations add InitialMigration --context MyContext
and the same is returning me the following message.
System.InvalidOperationException: The entity type 'PersonPass' is part of a hierarchy, but does not have a discriminator value configured.
In my classes I have PessoaFisica
and PessoaJuridica
inheriting from Pessoa
and Funcionario
inheriting from PessoaFisica
( public class Funcionario : PessoaFisica
).
modelBuilder.Entity<Funcionario>()
.ToTable("Funcionario");