79307233

Date: 2024-12-25 09:16:59
Score: 1
Natty:
Report link
var abc = Context.PersonSet.Include(p=> p!= null ? p.Child: null).ToList();

or

var abc = Context.PersonSet.Include(p=> p.Child != null ? p.Child: new Child()).ToList();
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Vladimir Mitic