* udated to .net6 * used the .net6 version RC2 * added editconfig. * App core new Scoped Namespaces style. * BlazorAdmin new Scoped Namespaces style. * Blazor Shared new Scoped Namespaces style. * Infra new Scoped Namespaces style. * public api new Scoped Namespaces style. * web new Scoped Namespaces style. * FunctionalTests new Scoped Namespaces style. * Integrational tests new Scoped Namespaces style. * unit tests new Scoped Namespaces style. * update github action. * update github action. * change the global.
20 lines
691 B
C#
20 lines
691 B
C#
using AutoMapper;
|
|
using Microsoft.eShopWeb.ApplicationCore.Entities;
|
|
using Microsoft.eShopWeb.PublicApi.CatalogBrandEndpoints;
|
|
using Microsoft.eShopWeb.PublicApi.CatalogItemEndpoints;
|
|
using Microsoft.eShopWeb.PublicApi.CatalogTypeEndpoints;
|
|
|
|
namespace Microsoft.eShopWeb.PublicApi;
|
|
|
|
public class MappingProfile : Profile
|
|
{
|
|
public MappingProfile()
|
|
{
|
|
CreateMap<CatalogItem, CatalogItemDto>();
|
|
CreateMap<CatalogType, CatalogTypeDto>()
|
|
.ForMember(dto => dto.Name, options => options.MapFrom(src => src.Type));
|
|
CreateMap<CatalogBrand, CatalogBrandDto>()
|
|
.ForMember(dto => dto.Name, options => options.MapFrom(src => src.Brand));
|
|
}
|
|
}
|