MireaBackend/Application/Common/Mappings/IMapWith.cs

9 lines
201 B
C#

using AutoMapper;
namespace Mirea.Api.DataAccess.Application.Common.Mappings;
public interface IMapWith<T>
{
void Mapping(Profile profile) =>
profile.CreateMap(typeof(T), GetType());
}