python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
Nullable object must have a value when deviding
I have the following mapping:
.ForMember(dest => dest.AskerAverageRating, opt => opt.MapFrom(src =>
src.ReviewsReceived != null?
((float)src.ReviewsReceived.Sum(r => r.Rating)...
Oren A
Votes: 0
Answers: 1
Automapper raised Error mapping types on upgrade to 11.0.0 (List to Dictionary)
I have a problem on map of property with type List to Dictionary.
this code was success on Automapper 10.1.1 and error raised after upgrade to 11.0.0.
CreateMap<ProcessActorEntity, ProcessActorView...

mRizvandi
Votes: 0
Answers: 1
C# MediatR: Return nested/compound DTO
I want to return a compound/nested DTO SearchDto which includes Status(timeMs, resultsFound) and List<SearchResult>.
Example JSON DTO
{
status: {
timeMs: 0.038583,
found: 728,
...
Luke Martin
Votes: 0
Answers: 1
AutoMapper ForMember and MapFrom is not executed
ForMember/MapFrom is somehow not executed whatever I try.
Those are the classes to be mapped;
public class ImageParams : IEntityParams, IImage, IOperatorFields
{
public ImageParams()
{
...

mctuna
Votes: 0
Answers: 2