Exemple #1
0
        //private string

        /// <summary>
        /// 向外提供的数据接口,方便打印和导出,导出的excel数据不一定与这里查询的字段一致,该方法备用
        /// </summary>
        /// <returns>数据源</returns>
        public ArrayList GetAllData()
        {
            string sql = "select * from " + SimpleOrmCache.GetTableName(this.entityType) + " " + condition + " order by " + this.orderField + " " + ((IsAsc) ? "asc" : "desc") + "";

            // IDataAccess access = DataAccessFactory.GetDataAccess();
            //DataTable dt = access.SelectDataTable(sql, this.tableName);
            return(SimpleOrmOperator.QueryList(this.entityType, sql));
        }
Exemple #2
0
 /// <summary>
 /// 根据currentpage查询分页的List
 /// </summary>
 private void QueryPageList()
 {
     this.lists = SimpleOrmOperator.QueryList(this.entityType, this.GetPageSql());
 }