79433704

Date: 2025-02-12 16:05:22
Score: 0.5
Natty:
Report link

If I'm understanding you correctly, maybe:

var dto = (from ma in context.MainAccounts
           let hasTrades = (from ac in context.Activities where ac.AccountId == ma.AccountId select ac).Any()
           select new MainAccountDto{ HasTrades = hasTrades }).Tolist();
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: GH DevOps