Skip to content

error requesting $count #209

@mansurdegirmenci

Description

@mansurdegirmenci
   [HttpGet]
   public async Task<IActionResult> Get(ODataQueryOptions<PhotoDto> options)
   {
       var result = await _dataListContext.Photos.GetQueryAsync(_mapper, options);
       return Ok(result);
   }

url: https://localhost:5001/api/Photos/$count

When I make a request to the specified url, it gives the following error, other requests work fine. The version I use is the latest version.

Microsoft.OData.ODataException: The value of type 'Microsoft.EntityFrameworkCore.Query.Internal.EntityQueryable`1[[WebUI.DataTransferObject.Server.PhotoDto, WebUI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]' could not be converted to a raw string.

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