How to get all persitable code first entities for a given DbContext?
I can get all declared DbSet properties from the context throught reflection, but when inheritance comes into play DbSet<TSomeAbstractBaseEntity>
is defined for a base abstract entity, and what I really need is the list of concrete descendants that were mapped.
(Yes, I'am aware that there's a dynamic way of connecting entity to the context via DbContext.DbSet<TEntity>()
method call. I just ignore this case.)