Adding convention to column naming for table creation.

Adding DatabaseContext hooked up to UmbracoContext and initialized through the CoreBootManager.
Adding constant for ConnectionString name in GlobalSettings.
This commit is contained in:
sitereactor
2012-10-29 09:49:31 -01:00
parent 3e6c56a394
commit 960ae22271
9 changed files with 139 additions and 17 deletions

View File

@@ -52,7 +52,9 @@ namespace Umbraco.Web
Application = applicationContext;
RoutesCache = routesCache;
//Consider moving these two contexts to the constructor for proper DI
Services = ServiceContext.Current;
DatabaseContext = DatabaseContext.Current;
// set the urls
this.RequestUrl = httpContext.Request.Url;
@@ -121,6 +123,14 @@ namespace Umbraco.Web
/// </summary>
public ServiceContext Services { get; private set; }
/// <summary>
/// Gets the current ServiceContext, which exposes the various services
/// </summary>
public DatabaseContext DatabaseContext { get; private set; }
/// <summary>
/// Gets the <see cref="IRoutesCache"/>
/// </summary>
internal IRoutesCache RoutesCache { get; private set; }
/// <summary>