Developer forum

Forum » PIM » Querys with code expressions

Querys with code expressions

Aki Ruuskanen
Aki Ruuskanen
Reply

Hi,

I'm trying to find documentation on how to create query expressions with code. 

Don't know if my searching capabilities are poor or if there is none?

Regards / Aki


Replies

 
Steffen Kruse Hansen Dynamicweb Employee
Steffen Kruse Hansen
Reply

Hi Aki,

So if I understand you correctly, when you want to create a query with some expression only using code?
Should it be a runtime query only, or should it actually be persisted, so it will be available later?

A query has an 'Expression' property. That expression can be filled with either a 'GroupExpression' or a 'BinaryExpression'.
These can be created by using static methods on Dynamicweb.Indexing.Querying.Expressions.Expression e.g 'Group' or 'Binary'.

I hope that was what you asked for

Best regards,

Steffen

 

You must be logged in to post in the forum