Minor fix in Core DI
This commit is contained in:
@@ -13,6 +13,7 @@ using Umbraco.Core.IO;
|
||||
using Umbraco.Core.Logging;
|
||||
using Umbraco.Core.Models.Rdbms;
|
||||
using Umbraco.Core.Persistence;
|
||||
using Umbraco.Core.Persistence.Mappers;
|
||||
using Umbraco.Core.Persistence.SqlSyntax;
|
||||
using Umbraco.Core.Plugins;
|
||||
using Umbraco.Core.Services;
|
||||
@@ -199,11 +200,11 @@ namespace Umbraco.Core
|
||||
container.Register<ISqlSyntaxProvider, SqlCeSyntaxProvider>("SqlCeSyntaxProvider");
|
||||
container.Register<ISqlSyntaxProvider, SqlServerSyntaxProvider>("SqlServerSyntaxProvider");
|
||||
|
||||
// fixme explain
|
||||
//// register persistence mappers - means the only place the collection can be modified
|
||||
//// is in a runtime - afterwards it has been frozen and it is too late
|
||||
//container.RegisterCollectionBuilder<MapperCollectionBuilder>()
|
||||
// .Add(f => f.GetInstance<PluginManager>().ResolveAssignedMapperTypes());
|
||||
// register persistence mappers - required by database factory so needs to be done here
|
||||
// means the only place the collection can be modified is in a runtime - afterwards it
|
||||
// has been frozen and it is too late
|
||||
container.RegisterCollectionBuilder<MapperCollectionBuilder>()
|
||||
.Add(f => f.GetInstance<PluginManager>().ResolveAssignedMapperTypes());
|
||||
|
||||
// register database factory
|
||||
// will be initialized with syntax providers and a logger, and will try to configure
|
||||
|
||||
Reference in New Issue
Block a user