first commit
This commit is contained in:
11
MyNewProjectName.Application/Mappings/IMapFrom.cs
Normal file
11
MyNewProjectName.Application/Mappings/IMapFrom.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
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());
|
||||
}
|
||||
Reference in New Issue
Block a user