Quantcast
Channel: Entity Framework
Viewing all articles
Browse latest Browse all 10318

Created Unassigned: Make the internal DbModelBuilder.Entity(Type entityType) method public [1425]

$
0
0
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.

Viewing all articles
Browse latest Browse all 10318

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>