/// <summary> /// create Collection /// </summary> /// <returns></returns> public void CreateCollection(String DatabaseName, String TableName) { //数据库连接 if (_connectionConfig.IsAutoCloseConnection == false) { if (_database.CheckStatus() == false) { throw new Exception("databse connect not open"); } } if (_connectionConfig.IsAutoCloseConnection == true) { _database.Open(); } _database.CreateCollection(DatabaseName, TableName); if (_connectionConfig.IsAutoCloseConnection == true) { _database.Close(); } }