Using more adapted when no connection string is found

--HG--
branch : dev
This commit is contained in:
Sebastien Ros
2010-12-09 15:50:20 -08:00
parent a88f2a74bf
commit 147dcf9bad

View File

@@ -18,7 +18,7 @@ namespace Orchard.Data.Providers {
public override IPersistenceConfigurer GetPersistenceConfigurer(bool createDatabase) {
var persistence = MsSqlConfiguration.MsSql2008;
if (string.IsNullOrEmpty(_connectionString)) {
throw new NotImplementedException();
throw new ArgumentException("The connection string is empty");
}
persistence = persistence.ConnectionString(_connectionString);
return persistence;