I want to pass the connection string to the constructor of the dbcontext to have the possibility to switch database per user. But using this dbcontext in the add-migration results in nullpointer on the connectionstring. How can I pass the connectionstring dynamically to the add-migration logic?
Or is there a better way to implement this functionallity