Home
Blogs
Questions

Home

About Us

Blogs

Questions

Monetize

Post Job

banner

Questions about icollection

Read more about icollection

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)

Questions - icollection

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)...
test-img

Oren A

entity-framework-core

sum

automapper

icollection

Votes: 0

Answers: 1

Latest Answer

You are missing parentheses around src.ReviewsReceived != null. Please find working solution here: https://dotnetfiddle.net/gaGZp0
test-img

AllWorkNoPlay

Posts

Questions

Blogs

Where knowledge meets opportunity!

About

  • Company
  • Monetize your knowledge
  • Support

  • Platform

  • Terms & Conditions
  • Privacy statement
  • Cookie policy
  • Cookie option
  • OnlyCoders © 2025  |  All rights reserved