-
Notifications
You must be signed in to change notification settings - Fork 58
Open
Description
[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
Labels
No labels