Closed dianamazo closed 10 months ago
Hello, thank you for your package, I have a concern. when we have a table that works with discriminators and we configure it through fluent api, as in the following example:
public class CollaboratorConfiguration : IEntityTypeConfiguration<Collaborator> { public void Configure(EntityTypeBuilder<Collaborator> builder) { **builder.HasDiscriminator**(hd => hd.CollaboratorType) .HasValue<Assistant>(CollaboratorType.Assistant) .HasValue<Auxiliary>(CollaboratorType.Auxiliary) .HasValue<Professional>(CollaboratorType.Professional) .HasValue<Typer>(CollaboratorType.Typer) .HasValue<Responsible>(CollaboratorType.Responsible); builder.HasOne<Speciality>() .WithMany() .HasForeignKey(fk => fk.SpecialityId) .OnDelete(DeleteBehavior.Restrict); builder.HasIndex(i => i.Identification) .IsUnique(); } }
At the time of creating the migration it is not able to convert the table name to snake case.
Thanks for your support.
i guess this is the same as #184
Duplicate of #184
Hello, thank you for your package, I have a concern. when we have a table that works with discriminators and we configure it through fluent api, as in the following example:
At the time of creating the migration it is not able to convert the table name to snake case.
Thanks for your support.