We have a custom AutoQuery Service with a custom Any() method as shown here:
https://docs.servicestack.net/autoquery-rdbms#autoquery-crud-batch-requests
In the Operations file, our Find class inherits from QueryDb:
[ConnectionInfo(NamedConnection = "AutoQueryConnection")]
[Route("/query/Audit/", "GET")]
public class FindAudit : QueryDb<Audit>
{
}
However in the Service file, the custom Any returns a QueryResponse<AuditDto>
and not QueryReponse<Audit>
.
public class AutoQueryService_Audit : AutoQueryService
{
public async Task<QueryResponse<AuditDto>> Any(FindAudit query)
{
When we generate a dtos.ts file for our Angular programmers, FindAudit is defined as returning QueryResponse<Audit>
and not QueryResponse<AuditDto>
. Should we change FindAudit to inherit from QueryDb<AuditDto>
? will that work?