Create a DbSet dynamically in Entity Framework? January 1, 2024 by Tarik DbContext has method for this: var set = context.Set<MyEntity>();