15 lines
400 B
C#
15 lines
400 B
C#
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>();
|
|
}
|
|
}
|
|
} |