コード例 #1
0
        /// <summary>
        /// get DataTable from query condition
        /// </summary>
        /// <returns></returns>
        public DataTable GetDataTable()
        {
            IQuery provider = QueryFactory.Create(ProviderName);

            return(provider.GetDataTable(this));
        }
コード例 #2
0
        /// <summary>
        /// 获取记录总数
        /// </summary>
        /// <returns></returns>
        public int GetRelationCount()
        {
            IQuery provider = QueryFactory.Create(ProviderName);

            return(provider.Count(this));
        }
コード例 #3
0
        /// <summary>
        /// get IDataReader from querycondition, no cache
        /// </summary>
        /// <returns></returns>
        public IDataReader GetReader()
        {
            IQuery provider = QueryFactory.Create(ProviderName);

            return(provider.GetReader(this));
        }
コード例 #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));
        }