mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 03:25:23 +08:00
Using more adapted when no connection string is found
--HG-- branch : dev
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user