I own an application with ~500 users, and for security and separation of concerns, we use a separate schema to manage a user's data with tables that are identical in structure for everyone. I cannot create a new dbcontext class for each user, and they are dynamic so we create the schema via code (which works great). I recently figured out how to use EF migrations for each user's schema as well, so the only thing I'm struggling with is dynamically swapping the schema I wish to point to for each web request.
The scenario is very similar to the one that this answer (not the chosen answer) solves: https://stackoverflow.com/a/50529432 But this question was posted nearly 4 years ago, so I'm not sure that this answer is the most efficient or even the suggested way to go about it. The github docs point all questions to StackOverflow, so I'm hoping for an up-to-date workaround so that I can leverage the greatness that is EF without having to create my own entire implementation from scratch.