My real life example is a bit different but the same principle, given these DTOs
[Alias("CompanyInformation")]
public class Company
{
[Alias("CompanyName")]
public string Name { get; set; }
[Alias("CompanyDetails")]
public string Details { get; set; }
[Alias("CompanyEmail")]
public string Email { get; set; }
/* References */
[IgnoreDataMember]
[Alias("CompanyCategoryId")]
public int CategoryId { get; set; }
[Reference]
public Category Category { get; set; }
}
[Alias("V_CompanyCategoriesUsed")]
public class Category
{
[Alias("CompanyCategoryId")]
public int Id { get; set; }
private string _name;
[Alias("CompanyCategoryName")]
public string Name { get; set; }
}
How would I AutoQuery for a category name? Say CategoryNameStartsWith=X?
My apologies in advance for bumping such an old topic, but I’m a little frustrated by my inability to find an answer to this very question put forward by the OP.
The links provided in this topic by @mythz and @DannyKim both seem to be outdated, as there is no mention of joins in either link - I suspect the page linked has been updated since and the relevant information removed. I’m finding this a common theme in discovering how to use AutoQuery - I Google and find topics which link to pages which no longer have the relevant information.
Where do I find the documentation describing how to provide an AutoQuery which joins two tables together, and allows me to filter based on fields of the joined table?