1
|
using Microsoft.AspNetCore.Builder;
|
2
|
using System;
|
3
|
using System.Collections.Generic;
|
4
|
using System.Linq;
|
5
|
using System.Text;
|
6
|
using System.Threading.Tasks;
|
7
|
using AutoMapper;
|
8
|
using Microsoft.Extensions.DependencyInjection;
|
9
|
|
10
|
namespace Core.MapperProfiles
|
11
|
{
|
12
|
public class RegisterMappings
|
13
|
{
|
14
|
/// <summary>
|
15
|
/// Registers mappings for AutoMapper in DI
|
16
|
/// </summary>
|
17
|
/// <param name="builder"></param>
|
18
|
public static void Register(WebApplicationBuilder builder)
|
19
|
{
|
20
|
builder.Services.AddAutoMapper(typeof(UserProfileEF), typeof(DocumentProfileEF), typeof(TagProfileEF));
|
21
|
}
|
22
|
}
|
23
|
}
|