Thanks Mythz but I am using IAutoQueryData which doesn’t provide that type, “db” is a MemoryDataSource.
Should this work out of the box? meaning the Search endpoints can inspect lists within a record?
This is what I have so far but it doesn’t work, ProxyAddresses is List[string] and I would need to perform a case insensitive search on it.
public object Any(SearchWindowsUsers query)
var windowsUsers = WindowsUserManagementUtilities.GetWindowsUsers(false, true);
var db = new MemoryDataSource<WindowsUser>(windowsUsers, query, Request);
var q = AutoQuery.CreateQuery(query, Request, db);
var field = typeof(WindowsUser).GetProperty(nameof(WindowsUser.ProxyAddresses));
q.AddCondition(QueryTerm.Or, field, InCollectionCondition.Instance, query.Email);
var users = AutoQuery.Execute(query, q, Request, db);
Do I have any other options?