We are rewriting some existing ArcObject code for ArcGIS Pro. We have now some code which uses a IQueryDef to run some select statement against a IWorkspace object.
The code looks something link this:
var queryDef = workspace.CreateQueryDef();
queryDef.Tables = "mytable";
queryDef.SubFields = "name, value1, value2";
queryDef.WhereClause = "refId in (1,2,3)";
queryDef.PostfixClause = " order by value1";
var cursor = queryDef.Evaluate();
I was now wondering, how we can achive the same with the ArcGIS Pro SDK.