Closed
Description
hi guys
i recently use this framework and i want to use OData. everything are ok like
- expane
- filter
- 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