Пример #1
0
        private int doEntitiesQuery()
        {
            switch (this._ens.GetNewEntity.EnMap.EnDBUrl.DBType)
            {
            case DBType.Oracle:
                if (this.IsEndAndOR == false)
                {
                    if (this.Top == -1)
                    {
                        this.AddHD();
                    }
                    else
                    {
                        this.AddWhereField("RowNum", "<=", this.Top);
                    }
                }
                else
                {
                    if (this.Top == -1)
                    {
                    }
                    else
                    {
                        this.addAnd();
                        this.AddWhereField("RowNum", "<=", this.Top);
                    }
                }
                break;

            case DBType.MSSQL:
            case DBType.MySQL:
            default:
                break;
            }
            return(EnDA.Retrieve(this.Ens, this.SQL, this.MyParas, this.FullAttrs));
        }
Пример #2
0
        //		/// 分页查询
        //		public int DoQuery(int pageNum,int pageCount)
        //		{
        //			if (this._ens==null ) throw new Exception("@Entity 不能执行这个方法。");
        //			_ens.clear();
        //			return this.doEntitiesQuery(pageNum,pageCount);
        //		}

        private int doEntityQuery()
        {
            return(EnDA.Retrieve(this.En, this.SQL, this.MyParas));
        }