OdataToEntity icon indicating copy to clipboard operation
OdataToEntity copied to clipboard

Question: Is it possible to update DynamicDbContext connection string per each request

Open mikimouse77 opened this issue 4 years ago • 0 comments

Currently I'm using DynamicDbContext to build EdmModel, but with multitenancy system I need to retrieve the data from different databases based on the request. I could build a different EdmModel for each tenant and then use that, but the issue is that there's limitation of 4 DynamicDbContext instances.

So my question is, is it possible to keep using DynamicDbContext but to update the database connection string per request?

mikimouse77 avatar Aug 10 '21 00:08 mikimouse77