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.
Can membership providers get connection string at run time?
Please refer to this thread: http://social.msdn.microsoft.com/Forums ... 452cf054b3.
Please note that ASP.NET providers are sealed in the current version (5.80.146) of dotConnect for MySQL. But we have already implemented the capability of extending base functionality of ASP.NET providers. This feature will be included in the next build. I will post here when it is available for download (2 weeks or so).
Please note that ASP.NET providers are sealed in the current version (5.80.146) of dotConnect for MySQL. But we have already implemented the capability of extending base functionality of ASP.NET providers. This feature will be included in the next build. I will post here when it is available for download (2 weeks or so).
New build of dotConnect for MySQL 5.80.152 is available for download.
It can be downloaded from http://www.devart.com/dotconnect/mysql/download.html (trial version) or from Registered Users' Area (for users with valid subscription only).
For more information, please refer to http://www.devart.com/forums/viewtopic.php?t=18590 .
It can be downloaded from http://www.devart.com/dotconnect/mysql/download.html (trial version) or from Registered Users' Area (for users with valid subscription only).
For more information, please refer to http://www.devart.com/forums/viewtopic.php?t=18590 .