79508900

Date: 2025-03-14 11:22:23
Score: 0.5
Natty:
Report link

As an addition to the previous answers:

Since C# 12, collection expressions can also be used. This simplifies the conversion to:

List<ProfitMargin> profitMargin = [.. await conn.QueryAsync<ProfitMargin>(sqlQuery, new { QuoteId = QuoteIds.ToArray()})]
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Grimm