Never mind, I myself found a solution:
Mapper.CreateMap<Employee, EmployeeDto>()
.ForMember(dest => dest.FullName, opt => opt.MapFrom(src => src.Name));
More Related Contents:
- Ignore mapping one property with Automapper
- How to set up Automapper in ASP.NET Core
- Automapper: Update property values without creating a new object
- AutoMapper convert from multiple sources
- How to ignore null values for all source members during mapping in Automapper 6?
- AutoMapper vs ValueInjecter [closed]
- Copy object to object (with Automapper ?)
- Possible to use AutoMapper to map one object to list of objects?
- Simple Automapper Example
- Dictionary map to an object using Automapper
- NuGet Package Manager: ‘AutoMapper’ already has a dependency defined for ‘Microsoft.CSharp’
- Automapper: Ignore on condition of
- Using Profiles in Automapper to map the same types with different logic
- Skip null values with custom resolver
- Pass Objects to AutoMapper Mapping
- Allow mapping of dynamic types using AutoMapper or similar?
- AutoMapper Migrating from static API
- Is there a good LINQ way to do a cartesian product?
- Dynamically change connection string in Asp.Net Core
- Best way in .NET to manage queue of tasks on a separate (single) thread
- C# Math calculator [duplicate]
- How do I convert an escaped JSON string within a JSON object?
- What is a Predicate Delegate and where should it be used?
- What does “yield break;” do in C#?
- How to store JSON in an entity field with EF Core?
- How to maximize the browser window in Selenium WebDriver (Selenium 2) using C#?
- Synchronize Scroll Position of two RichTextBoxes?
- Using ADAL C# as Confidential User /Daemon Server /Server-to-Server – 401 Unauthorized
- Why is this name with an underscore not CLS Compliant?
- Keep console window of a new Process open after it finishes