Skip to content

Question: GroupBy fails for field named SHORT #180

@alexfestbaum

Description

@alexfestbaum

Issuing a GroupBy against a entity field named SHORT results in the following error:

'.' or '(' or string literal expected

var result = baseData .Select(entityName) .GroupBy("SHORT", "it") .Select("new (it.Key as value, it.Count() as count)") .ToDynamicList();

Short seems to be a protected key/word. How can I resolve this issue? Padding the field with '[SHORT]' like SQL Server would do did not help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions