C# Class MongdioLogic.db.MDB

Show file Open project: okku/Mongdio

Public Methods

Method Description
CreateCollection ( string dbName, string collectionName ) : void
CreateDatabase ( string dbName ) : bool
CreateIndexes ( string dbName, string collectionNamespace, string pattern ) : Document
DropCollection ( string dbName, string collectionName ) : bool
DropDatabase ( string dbName ) : bool
DropIndex ( string dbName, string collectionName, Document key ) : void
GetCollections ( string dbName ) : List
GetDatabases ( ) : List
GetIndexsByNS ( string dbName, string collectionNamespace ) : List
GetMongo ( ) : Mong

Method Details

CreateCollection() public static method

public static CreateCollection ( string dbName, string collectionName ) : void
dbName string
collectionName string
return void

CreateDatabase() public static method

public static CreateDatabase ( string dbName ) : bool
dbName string
return bool

CreateIndexes() public static method

public static CreateIndexes ( string dbName, string collectionNamespace, string pattern ) : Document
dbName string
collectionNamespace string
pattern string
return MongoDB.Driver.Document

DropCollection() public static method

public static DropCollection ( string dbName, string collectionName ) : bool
dbName string
collectionName string
return bool

DropDatabase() public static method

public static DropDatabase ( string dbName ) : bool
dbName string
return bool

DropIndex() public static method

public static DropIndex ( string dbName, string collectionName, Document key ) : void
dbName string
collectionName string
key MongoDB.Driver.Document
return void

GetCollections() public static method

public static GetCollections ( string dbName ) : List
dbName string
return List

GetDatabases() public static method

public static GetDatabases ( ) : List
return List

GetIndexsByNS() public static method

public static GetIndexsByNS ( string dbName, string collectionNamespace ) : List
dbName string
collectionNamespace string
return List

GetMongo() public static method

public static GetMongo ( ) : Mong
return Mong