public DObjectCollection Select(DObject criteria, DOrder order) { string sql = ""; if (criteria == null) { sql = "SELECT * FROM " + TableName; } else { sql = criteria.GetSelectSql(TableName); } if (order != null) { sql += order.ToSqlString(); } return(Select(sql)); }
public DObjectCollection Select(DOrder order) { return(Select(null, order)); }