Exemplo n.º 1
0
        /// <summary>
        /// get DataTable from query condition
        /// </summary>
        /// <returns></returns>
        public DataTable GetDataTable()
        {
            IQuery provider = QueryFactory.Create(ProviderName);

            return(provider.GetDataTable(this));
        }
Exemplo n.º 2
0
        /// <summary>
        /// 获取记录总数
        /// </summary>
        /// <returns></returns>
        public int GetRelationCount()
        {
            IQuery provider = QueryFactory.Create(ProviderName);

            return(provider.Count(this));
        }
Exemplo n.º 3
0
        /// <summary>
        /// get IDataReader from querycondition, no cache
        /// </summary>
        /// <returns></returns>
        public IDataReader GetReader()
        {
            IQuery provider = QueryFactory.Create(ProviderName);

            return(provider.GetReader(this));
        }
Exemplo n.º 4
0
        /// <summary>
        /// 获取记录Id列表
        /// </summary>
        /// <typeparam name="T"></typeparam>
        /// <returns></returns>
        public List <T> GetRelationIds <T>()
        {
            IQuery provider = QueryFactory.Create(ProviderName);

            return(provider.GetRelationIds <T>(this));
        }