C# Class MongoDB.Database

Inheritance: System.Dynamic.DynamicObject, IDisposable
Datei anzeigen Open project: dannycoates/mongo-clr4-driver

Private Properties

Property Type Description
Database System
Dispose void

Public Methods

Method Description
Authenticate ( string username, string password ) : bool
CreateCollection ( string name, object>.IDictionary options = null ) : Collection
Dispose ( ) : void
Drop ( ) : void
Eval ( ScopedCode code ) : string
Eval ( string code ) : string
ExecuteCommand ( Command cmd ) : Doc
GetCollection ( string name ) : Collection
GetCollectionNames ( ) : IEnumerable
Logout ( ) : void
RenameCollection ( string oldName, string newName ) : void
TryGetMember ( GetMemberBinder binder, object &result ) : bool

Private Methods

Method Description
Database ( string name, Mongo m ) : System
Dispose ( bool disposing ) : void

Method Details

Authenticate() public method

public Authenticate ( string username, string password ) : bool
username string
password string
return bool

CreateCollection() public method

public CreateCollection ( string name, object>.IDictionary options = null ) : Collection
name string
options object>.IDictionary
return Collection

Dispose() public method

public Dispose ( ) : void
return void

Drop() public method

public Drop ( ) : void
return void

Eval() public method

public Eval ( ScopedCode code ) : string
code MongoDB.Types.ScopedCode
return string

Eval() public method

public Eval ( string code ) : string
code string
return string

ExecuteCommand() public method

public ExecuteCommand ( Command cmd ) : Doc
cmd Command
return Doc

GetCollection() public method

public GetCollection ( string name ) : Collection
name string
return Collection

GetCollectionNames() public method

public GetCollectionNames ( ) : IEnumerable
return IEnumerable

Logout() public method

public Logout ( ) : void
return void

RenameCollection() public method

public RenameCollection ( string oldName, string newName ) : void
oldName string
newName string
return void

TryGetMember() public method

public TryGetMember ( GetMemberBinder binder, object &result ) : bool
binder System.Dynamic.GetMemberBinder
result object
return bool