Removes more singletons and reliance on singletons/statics

This commit is contained in:
Shannon
2015-01-09 12:04:33 +11:00
parent 86f6c4a39d
commit 9f30a9b0fc
37 changed files with 93 additions and 111 deletions

View File

@@ -79,7 +79,7 @@ namespace Umbraco.Tests.Persistence
//re-map the dbcontext to the new conn string
_dbContext = new DatabaseContext(new DefaultDatabaseFactory(engine.LocalConnectionString, "System.Data.SqlServerCe.4.0"));
SqlSyntaxContext.SqlSyntaxProvider = SqlCeSyntax.Provider;
SqlSyntaxContext.SqlSyntaxProvider = new SqlCeSyntaxProvider();
//Create the umbraco database
_dbContext.Database.CreateDatabaseSchema(false);