Hi,
I am using Add Typescript reference to create concrete dtos.ts file. I am also using AutoQuery via QueryDb. Within the dtos.ts file is generated, the export class QueryBase is being declared after my AutoQuery DTO - which is:
[Route("/api/execs")]
public class QueryExecs : QueryDb<Executive>
{
public long? Id { get; set; }
public string LastnameStartsWith { get; set; }
public string FirstnameStartsWith { get; set; }
}
As a result, when the generated js is run, it generates a “Cannot read property ‘prototype’ of undefined”.
Looking at your techstacks demo, the QueryBase is being declared before any QueryDb and this is before any implementations so all works. Is there any way I can control the order in which this code is generated?
I’m using v4.5
Thanks
G