Permalink
Browse files

Changed usage of Database.OpenConnection() to Database.OpenNamedConne…

…ction().
  • Loading branch information...
1 parent d8f1d33 commit 07a7fc5434384b1d9871461e72d45f70a4b72db8 @nbarnwell nbarnwell committed with alastairs Aug 12, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/GiveCRM.DataAccess/MultiTenantDatabaseProvider.cs
@@ -55,7 +55,7 @@ private ConnectionDetails GetConnectionString(string tenantCode)
// TODO: Make this a service call to the Admin site rather than hitting the DB directly
using (var transaction = TransactionScopeFactory.Create(true))
{
- var database = Database.OpenConnection(ConfigurationManager.ConnectionStrings["GiveCRMAdmin"].ConnectionString);
+ var database = Database.OpenNamedConnection("GiveCRMAdmin");
var charity = database.Charity.FindByTenantCode(tenantCode);

0 comments on commit 07a7fc5

Please sign in to comment.