Can membership providers get connection string at run time?
Posted: Sat 10 Jul 2010 06:39
We're developing a multi tenant mvc app, and would like to use the membership providers if we can, but a vital requirement is that we must be able to set the connection string for those providers at runtime. We don't want centralised user db for every client, but have the aspnet_* tables inside each client's database.
So the connection string can't be stored in web.config. I'm passing the conn string in to LinqConnect using Dependency Injection, so fine for general db access, but is it possible to do with the membership system?
Sorry if this is obvious, or been asked before, but I couldn't find anything after searching.
So the connection string can't be stored in web.config. I'm passing the conn string in to LinqConnect using Dependency Injection, so fine for general db access, but is it possible to do with the membership system?
Sorry if this is obvious, or been asked before, but I couldn't find anything after searching.