Can membership providers get connection string at run time?

Can membership providers get connection string at run time?

Postby 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.
notken
 
Posts: 6
Joined: Mon 27 Oct 2008 13:57

Postby Shalex » Mon 12 Jul 2010 14:01

Please refer to this thread: http://social.msdn.microsoft.com/Forums/en-US/adodotnetdataproviders/thread/260d8536-c39f-41ec-b181-4d452cf054b3.
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).
Shalex
Devart Team
 
Posts: 7530
Joined: Thu 14 Aug 2008 12:44

Postby notken » Mon 12 Jul 2010 14:12

Great. Thanks. I'll hold on until the new version then.
notken
 
Posts: 6
Joined: Mon 27 Oct 2008 13:57

Postby 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 .
Shalex
Devart Team
 
Posts: 7530
Joined: Thu 14 Aug 2008 12:44


Return to dotConnect for MySQL