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.
15 lines
345 B
C#
15 lines
345 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using NPoco;
|
|
using Umbraco.Cms.Core.Composing;
|
|
|
|
namespace Umbraco.Cms.Infrastructure.Persistence
|
|
{
|
|
public sealed class NPocoMapperCollection : BuilderCollectionBase<IMapper>
|
|
{
|
|
public NPocoMapperCollection(Func<IEnumerable<IMapper>> items) : base(items)
|
|
{
|
|
}
|
|
}
|
|
}
|