Can membership providers get connection string at run time?

Discussion of open issues, suggestions and bugs regarding ADO.NET provider for MySQL
Post Reply
notken
Posts: 6
Joined: Mon 27 Oct 2008 13:57

Can membership providers get connection string at run time?

Post by notken » 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.

Shalex
Site Admin
Posts: 9543
Joined: Thu 14 Aug 2008 12:44

Post by Shalex » Mon 12 Jul 2010 14:01

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).

notken
Posts: 6
Joined: Mon 27 Oct 2008 13:57

Post by notken » Mon 12 Jul 2010 14:12

Great. Thanks. I'll hold on until the new version then.

Shalex
Site Admin
Posts: 9543
Joined: Thu 14 Aug 2008 12:44

Post by Shalex » Wed 04 Aug 2010 16:27

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 .

Post Reply