Please make the internal EntityTypeConfiguration DbModelBuilder.Entity(Type entityType) method public.
This would make registration of run-time generated types far easier.
Currently two hacky reflection based workarounds exists:
1. The public generic method can be invoked using MakeGenericMethod but then there is no access to the EntityTypeConfiguration object to further configure the entity.
2. The internal method can be invoked and cast to EntityTypeConfiguration.
This would make registration of run-time generated types far easier.
Currently two hacky reflection based workarounds exists:
1. The public generic method can be invoked using MakeGenericMethod but then there is no access to the EntityTypeConfiguration object to further configure the entity.
2. The internal method can be invoked and cast to EntityTypeConfiguration.