Page 1 of 1

Can membership providers get connection string at run time?

Posted: Sat 10 Jul 2010 06:39
by notken
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.

Posted: Mon 12 Jul 2010 14:01
by Shalex
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).

Posted: Mon 12 Jul 2010 14:12
by notken
Great. Thanks. I'll hold on until the new version then.

Posted: Wed 04 Aug 2010 16:27
by Shalex
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 .