public ActiveRecordList <TActiveRecord> GetResults(bool useDefaultOrderBy) { var sql = GetSql(); sql.Paging(ItemsPerPage, PageNum); var list = new ActiveRecordList <TActiveRecord>(); ActiveRecordLoader.LoadRecords <TActiveRecord>(list, sql); return(list); }
public SavvyDataForm(Sql sql, SubformOptions options) { this.options = options; this.recordList = new TActiveRecordList(); this.recordList.LoadRecords(sql); }
public SavvyDataForm(ActiveRecordList <TActiveRecord> list, SubformOptions options) { this.options = options; this.recordList = list; }
// methods /// <summary> /// Default constructor: Pass in an ActiveRecordList that will be used in the subform. /// </summary> /// <param name="list">The ActiveRecordList </param> public SavvyDataForm(TActiveRecordList list) { this.recordList = list; }
public static void ExportToExcel(ActiveRecordList <ActiveRecord> list, string filename) { ExportToExcel(list.innerList, filename); }