You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Originally posted by flyspirit99 August 4, 2021
I started to use Sieve a couple of days ago and love it. Now I encounter a situation and don't know how to do it by Sieve
I have a one to many relationship like below
public class Company
{
public ICollection<Certificate> Certificates {get; set;}
}
public class Certificate
{
public string Name {get; set;}
public int CompanyId { get; set;}
public Company Company {get; set;}
}
In CompanyApiController.GetCompanies() action, I need to filter company by its certificate name. Is this possible?
The text was updated successfully, but these errors were encountered:
I can confirm what @ameckl suggested. I had the same challange and it works fine with ISieveCustomFilterMethods
You just have to use the method name in the URL e.g.: /api/companies?page=1&pagesize=10&filters=CertificateName==MyFancyCertificate
Discussed in #153
Originally posted by flyspirit99 August 4, 2021
I started to use Sieve a couple of days ago and love it. Now I encounter a situation and don't know how to do it by Sieve
I have a one to many relationship like below
In CompanyApiController.GetCompanies() action, I need to filter company by its certificate name. Is this possible?
The text was updated successfully, but these errors were encountered: