Skip to content

Use $count without IEdmModel with EnableDependencyInjection #1818

Open
@ramil-mux

Description

@ramil-mux

Hello!
I would like to know if I can use the $count method without creating an IEdmModel using only EnableDependencyInjection in Startup class ASP.NET Core web application and [EnableQuery] in Controller?
Using only EnableDependencyInjection and [EnableQuery] method $count=true don't work - returns only the list of records of the current object.
If I use IEdmModel and MapODataServiceRoute in Sturtup class, then the $count method works - returns the list of records of the current object and count attribute.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions