Plugin Developer Discussion

Discussion for FogBugz Plugin developers

Database method should support chaining method calls

All of the database methods like CSelectQuery.AddSelect() and CWhereQuery.AddWhere should return the original query in order to support method chaining.  That way queries can be wirtten as a single statement like this:

var query = api.DataBase.NewSelectQuery(TableName).AddSelect("iData").AddWhere("Correct

= 1");

The change would be backwards compatible since changing from a void signature to return something would not break existing plugins.

Thanks,

Sam
Samuel Neff Send private email
Friday, August 28, 2009
 
 
Hmm, good idea.  I'll open a case.
David Fullerton Send private email
Friday, August 28, 2009
 
 

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

Other recent topics Other recent topics
 
Powered by FogBugz