Files
Umbraco-CMS/src/Umbraco.Core/ModelMapperHelper.cs
T

15 lines
400 B
C#
Raw Normal View History

2013-08-12 15:06:12 +02:00
using AutoMapper;
namespace Umbraco.Core
{
/// <summary>
/// Helper class for static model mapping with automapper
/// </summary>
internal static class ModelMapperHelper
{
internal static IMappingExpression<TSource, TSource> SelfMap<TSource>(this IConfiguration config)
{
return config.CreateMap<TSource, TSource>();
}
}
}