The code below works, however I need to return the DTO and not the POCO entities:
var queryable = this._context.Cities.AsNoTracking().AsQueryable();var total = queryable.Count();var results = queryOptions.ApplyTo(queryable, new ODataQuerySettings() { PageSize = pageSize });
When I use the AutoMapper.Extensions.OData library, ODataQuerySettings is not supported
var result = await queryable.GetQueryAsync<CityDTO>(this._mapper, queryOptions);
The code below works, however I need to return the DTO and not the POCO entities:
var queryable = this._context.Cities.AsNoTracking().AsQueryable();
var total = queryable.Count();
var results = queryOptions.ApplyTo(queryable, new ODataQuerySettings() { PageSize = pageSize });
When I use the AutoMapper.Extensions.OData library, ODataQuerySettings is not supported
var result = await queryable.GetQueryAsync<CityDTO>(this._mapper, queryOptions);
Any suggestion? Hugs!