20 lines
527 B
C#
20 lines
527 B
C#
using ApplicationHub.Data.EF.Authentication.Entities;
|
|
using ApplicationHub.Domain.Contracts.Authentication.Models;
|
|
using AutoMapper;
|
|
|
|
namespace ApplicationHub.Data.EF.Configuration;
|
|
|
|
public class MappingProfile : Profile
|
|
{
|
|
public MappingProfile()
|
|
{
|
|
CreateMap<User, UserEntity>();
|
|
CreateMap<UserEntity, User>();
|
|
|
|
CreateMap<Group, GroupEntity>();
|
|
CreateMap<GroupEntity, Group>();
|
|
|
|
CreateMap<Right, RightEntity>();
|
|
CreateMap<RightEntity, Right>();
|
|
}
|
|
} |