Scalar<List<People>> vs Query<People>
opened this issue · comments
Deleted user commented
I see in the documentation that it says to use Query for returning a list of objects, but I was wondering if using Scalar<List> has an down falls vs Query?
Devlin Liles commented
If you use Query it will not break deferred execution the way a List return from Scalar would. I would recommend using Query. If you want it to execute immediately then Scalar or .ToList() from Query would be the way to do that.