Skip to content

AsCount problem in SQLServer #185

@JordiPerello

Description

@JordiPerello

Hello Ahmad,

I have detected a problem with the "AsCount()" function.

  1. If I do not pass any arguments, the query that generates is this: "SELECT COUNT(*)", this is correct.

  2. If I pass a single column as a parameter, the query it generates is this: "SELECT COUNT([table].[Id])", this is correct

  3. If I pass an array of columns as a parameter, the query it generates is: "SELECT COUNT([table].[Id], [table].[Description])", it is NOT correct, the correct way to do it in SQL it is "SELECT COUNT(CONCAT ([table].[Id], [table].[Description]))" but SqlKata is not converting it correctly.

Is it possible that you could correct this issue?

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions