Plugin Developer Discussion

Discussion for FogBugz Plugin developers

CBugEvent, QueryField method?

The CBugEvent class is missing the QueryField method.

As a work-around, if I do:

CBugEventQuery query = api.BugEvent.NewBugEventQuery();
// init query by joining person names ...

CBugEvent[] events = query.List();
DataSet dataSet = query.GetDataSet();
// iterate over events, and use dataSet to get the joined data

will the separate List and GetDataSet calls result in a double database retrieval? Should I use GetDataSet exclusively?

Thank you.
Darren Lafreniere Send private email
Wednesday, September 30, 2009
 
 
This will result in two DB queries.  I've opened a bug to expose CBugEvent.QueryField.  In the mean time you could either query twice, or use the DataSet exclusively, though you'll have to be a little careful with the permissions.
David Fullerton Send private email
Thursday, October 8, 2009
 
 

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics
 
Powered by FogBugz