12 lines
253 B
C#
12 lines
253 B
C#
using AutoMapper;
|
|
|
|
namespace MyNewProjectName.Application.Mappings;
|
|
|
|
/// <summary>
|
|
/// Interface for auto mapping registration
|
|
/// </summary>
|
|
public interface IMapFrom<T>
|
|
{
|
|
void Mapping(Profile profile) => profile.CreateMap(typeof(T), GetType());
|
|
}
|