ZoLBaN ZoLBaN - 11 months ago 82
C# Question

Linq Select into --> "if" or "Case when" using in where condition

in this value "overdueDays", I would like to fetch 0 if this field is null.

Thanks.
Code Is Here

Answer Source

Could you try this.

overdueDays = g.Any(x => x.AdatGun < 0) ? your code here: 0;
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download