Persistence reorg, killed DatabaseContext

This commit is contained in:
Stephan
2016-12-16 17:56:10 +01:00
parent 49d54f497d
commit 7f39f7748f
69 changed files with 413 additions and 430 deletions

View File

@@ -6,6 +6,7 @@ using System.Web.UI;
using Umbraco.Core;
using Umbraco.Core.Cache;
using Umbraco.Core.Logging;
using Umbraco.Core.Persistence;
using Umbraco.Core.Services;
using Umbraco.Web.Security;
using Umbraco.Web.UI.Pages;
@@ -36,7 +37,7 @@ namespace Umbraco.Web.UI.Controls
// fixme inject somehow
Logger = Current.Logger;
ProfilingLogger = Current.ProfilingLogger;
DatabaseContext = Current.DatabaseContext;
DatabaseFactory = Current.DatabaseFactory;
Services = Current.Services;
}
@@ -88,7 +89,7 @@ namespace Umbraco.Web.UI.Controls
/// <summary>
/// Gets the database context.
/// </summary>
public DatabaseContext DatabaseContext { get; }
public IUmbracoDatabaseFactory DatabaseFactory { get; }
/// <summary>
/// Gets an instance of ClientTools for access to the pages client API.