26 lines
735 B
C#
26 lines
735 B
C#
using Microsoft.Extensions.DependencyInjection;
|
|
using Umbraco.Core;
|
|
using Umbraco.Core.BackOffice;
|
|
using Umbraco.Core.Builder;
|
|
using Umbraco.Core.Composing;
|
|
using Umbraco.Core.Mapping;
|
|
using Umbraco.Web.BackOffice.Mapping;
|
|
|
|
namespace Umbraco.Extensions
|
|
{
|
|
public static class WebMappingProfiles
|
|
{
|
|
public static IUmbracoBuilder ComposeWebMappingProfiles(this IUmbracoBuilder builder)
|
|
{
|
|
builder.WithCollectionBuilder<MapDefinitionCollectionBuilder>()
|
|
.Add<ContentMapDefinition>()
|
|
.Add<MediaMapDefinition>()
|
|
.Add<MemberMapDefinition>();
|
|
|
|
builder.Services.AddTransient<CommonTreeNodeMapper>();
|
|
|
|
return builder;
|
|
}
|
|
}
|
|
}
|