using AutoMapper; using Volo.Abp.ObjectExtending.TestObjects; namespace Volo.Abp.AutoMapper.SampleClasses { public class MyMapProfile : Profile { public MyMapProfile() { CreateMap().ReverseMap(); CreateMap() .MapExtraProperties(ignoredProperties: new[] { "CityName" }); } } }