This means we don't have to inject Lazy<T> all over the place when dealing with colleciton builders and circular references since this will automatically just work OOTB. This in theory should also allocate less instances during startup.
12 lines
390 B
C#
12 lines
390 B
C#
using Umbraco.Cms.Core;
|
|
using Umbraco.Cms.Infrastructure.Persistence;
|
|
|
|
namespace Umbraco.Cms.Persistence.SqlCe
|
|
{
|
|
public class SqlCeSpecificMapperFactory : IProviderSpecificMapperFactory
|
|
{
|
|
public string ProviderName => Constants.DatabaseProviders.SqlCe;
|
|
public NPocoMapperCollection Mappers => new NPocoMapperCollection(() => new[] {new SqlCeImageMapper()});
|
|
}
|
|
}
|