Skip to content

OData return 500 error #6243

Closed
Closed
@MohammadMobasher

Description

@MohammadMobasher

hi guys
i recently use this framework and i want to use OData. everything are ok like

  1. expane
  2. filter
  3. count
    and so on, but when i want to use aggregate the endpoint response 500 error without any other info, just 500 error.

my configuration is :

startup.cs
builder.EntitySet<TestTbl>("TestTbl").EntityType.Count().Filter().OrderBy().Expand().Select().Page().;

TestTblController.cs

public override IQueryable<TestTbl> Get() { return this._repository.GetAll().Include("Tenant"); }

and my url is:
/odata/testTbl?$count=true&$apply=aggregate($count as testCount)
or
/odata/testTbl?$count=true&$apply=groupby((Name),aggregate($count as Total))

on both url i got this error and i don't know what should i do? please help me
tanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions