예제 #1
0
        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));
        }
예제 #2
0
 public DObjectCollection Select(DOrder order)
 {
     return(Select(null, order));
 }