I have a database model that can be modify by users at runtime:
- adding new columns to existing tables
- adding new tables
I want to use Entity Framework Core to access such model.
I'm able of creating the types for the new tables and fields using reflection but I'm not able of creating the DbSet members inside the DbContext class for these new types as the DbSet needs to know the type at compile time.
Does anyone know if this is something that can be achieved with EF Core? A way of injecting the type to the DbSet member dynamically?