C# Class MongoUtility.Core.ConnectionInfo

Datei anzeigen Open project: magicdict/MongoCola

Public Methods

Method Description
GetColIndexInfo ( MongoClient client, string dbName, string collectionName ) : List

获得索引列表

GetCollectionCnt ( IMongoCollection col ) : long
GetCollectionInfo ( MongoClient client, string dbName, string collectionName ) : BsonDocument

获得数据集信息

GetCollectionInfoList ( MongoClient client, string dbName ) : List

获得数据集列表

GetDatabaseInfoList ( MongoClient client ) : List

获得数据库定义列表

GetICollection ( MongoClient client, string dbName, string collectionName ) : IMongoCollection

获得数据集实例(IMongoCollection)

GetViewInfoList ( MongoClient client, string dbName ) : List

获得视图定义列表

Method Details

GetColIndexInfo() public static method

获得索引列表
public static GetColIndexInfo ( MongoClient client, string dbName, string collectionName ) : List
client MongoDB.Driver.MongoClient
dbName string
collectionName string
return List

GetCollectionCnt() public static method

public static GetCollectionCnt ( IMongoCollection col ) : long
col IMongoCollection
return long

GetCollectionInfo() public static method

获得数据集信息
public static GetCollectionInfo ( MongoClient client, string dbName, string collectionName ) : BsonDocument
client MongoDB.Driver.MongoClient
dbName string
collectionName string
return BsonDocument

GetCollectionInfoList() public static method

获得数据集列表
public static GetCollectionInfoList ( MongoClient client, string dbName ) : List
client MongoDB.Driver.MongoClient
dbName string
return List

GetDatabaseInfoList() public static method

获得数据库定义列表
public static GetDatabaseInfoList ( MongoClient client ) : List
client MongoDB.Driver.MongoClient
return List

GetICollection() public static method

获得数据集实例(IMongoCollection)
public static GetICollection ( MongoClient client, string dbName, string collectionName ) : IMongoCollection
client MongoDB.Driver.MongoClient
dbName string
collectionName string
return IMongoCollection

GetViewInfoList() public static method

获得视图定义列表
public static GetViewInfoList ( MongoClient client, string dbName ) : List
client MongoDB.Driver.MongoClient
dbName string
return List