My members have about 100+ custom attributes.
I wish to query the members by multiple properties and wish to know the most efficient (quickest) way of doing it.
Currently there are hundreds but soon to be thousands.
It would be nice in the future for an Umbraco method in which you can query by multiple values instead of just one.
Or is there one and I am missing it??
Also be good to see a StringPropertyMatchType that is not equal to !=
Querying Members With Multiple Properties
Good Morning,
My members have about 100+ custom attributes. I wish to query the members by multiple properties and wish to know the most efficient (quickest) way of doing it.
Either by an Api call like:
or maybe a stored procedure?
Any advice would be greatly appreciated.
Regards, L
Hi L,
Of cource stored procedure will be faster, how many members do you have ? If it's not thousands you can use Umbraco api courageously.
Thanks
Thanks for the kind reply!
Currently there are hundreds but soon to be thousands. It would be nice in the future for an Umbraco method in which you can query by multiple values instead of just one.
Or is there one and I am missing it??
Also be good to see a StringPropertyMatchType that is not equal to !=
Regards, L
Hi Luke did you get this working?
I used the following to filter on next property required
var Inspectors = ApplicationContext.Current.Services.MemberService.GetMembersByPropertyValue("Inspections", true);
@foreach (var member in Inspectors) { if(Convert.ToBoolean(member.GetValue("umbracoMemberApproved"))){
} }
You can use uQuery.GetMembersByXPath also
is working on a reply...