/// <summary> /// get all data /// 得到表中所有数据 /// </summary> /// <param name="IncludeColumnName">包含列 include field</param> /// <param name="ExcludeColumnName">排除列 exclude field</param> /// <returns></returns> public IHashTable Data(List <String> IncludeColumnName, List <String> ExcludeColumnName) { //数据库连接 if (_connectionConfig.IsAutoCloseConnection == false) { if (_database.CheckStatus() == false) { throw new Exception("databse connect not open"); } } if (_connectionConfig.IsAutoCloseConnection == true) { _database.Open(); } List <Hashtable> hr; if (filterDefinition != null) { hr = _database.GetColumnDataSet(_databasename, _TableName, IncludeColumnName, ExcludeColumnName, filterDefinition); } else { hr = _database.GetColumnDataSet(_databasename, _TableName, IncludeColumnName, ExcludeColumnName, new BsonDocument()); } if (_connectionConfig.IsAutoCloseConnection == true) { _database.Close(); } IHashTable DT = new IHashTable(hr); return(DT); }