/// <summary> /// get DataTable from query condition /// </summary> /// <returns></returns> public DataTable GetDataTable() { IQuery provider = QueryFactory.Create(ProviderName); return(provider.GetDataTable(this)); }
/// <summary> /// 获取记录总数 /// </summary> /// <returns></returns> public int GetRelationCount() { IQuery provider = QueryFactory.Create(ProviderName); return(provider.Count(this)); }
/// <summary> /// get IDataReader from querycondition, no cache /// </summary> /// <returns></returns> public IDataReader GetReader() { IQuery provider = QueryFactory.Create(ProviderName); return(provider.GetReader(this)); }
/// <summary> /// 获取记录Id列表 /// </summary> /// <typeparam name="T"></typeparam> /// <returns></returns> public List <T> GetRelationIds <T>() { IQuery provider = QueryFactory.Create(ProviderName); return(provider.GetRelationIds <T>(this)); }