C# 클래스 MongoDB.Driver.Database

상속: IDatabase
파일 보기 프로젝트 열기: sdether/mongodb-csharp 1 사용 예제들

공개 메소드들

메소드 설명
Authenticate ( string username, string password ) : bool
Database ( Connection conn, String name ) : System
Eval ( CodeWScope cw ) : Document
Eval ( string javascript ) : Document
Eval ( string javascript, Document scope ) : Document
FollowReference ( DBRef reference ) : Document

Gets the document that a reference is pointing to.

GetCollection ( String name ) : IMongoCollection
GetCollectionNames ( ) : List
GetLastError ( ) : Document

Most operations do not have a return code in order to save the client from having to wait for results. GetLastError can be called to retrieve the return code if clients want one.

GetLastErrorAndFSync ( ) : Document

Retrieves the last error and forces the database to fsync all files before returning.

Server version 1.3+

GetPreviousError ( ) : Document

Call after sending a bulk operation to the database.

Logout ( ) : void
ResetError ( ) : void

Resets last error. This is good to call before a bulk operation.

SendCommand ( Document cmd ) : Document
SendCommand ( string command ) : Document
this ( String name ) : IMongoCollection

비공개 메소드들

메소드 설명
Hash ( string text ) : string

메소드 상세

Authenticate() 공개 메소드

public Authenticate ( string username, string password ) : bool
username string
password string
리턴 bool

Database() 공개 메소드

public Database ( Connection conn, String name ) : System
conn Connection
name String
리턴 System

Eval() 공개 메소드

public Eval ( CodeWScope cw ) : Document
cw CodeWScope
리턴 Document

Eval() 공개 메소드

public Eval ( string javascript ) : Document
javascript string
리턴 Document

Eval() 공개 메소드

public Eval ( string javascript, Document scope ) : Document
javascript string
scope Document
리턴 Document

FollowReference() 공개 메소드

Gets the document that a reference is pointing to.
public FollowReference ( DBRef reference ) : Document
reference DBRef
리턴 Document

GetCollection() 공개 메소드

public GetCollection ( String name ) : IMongoCollection
name String
리턴 IMongoCollection

GetCollectionNames() 공개 메소드

public GetCollectionNames ( ) : List
리턴 List

GetLastError() 공개 메소드

Most operations do not have a return code in order to save the client from having to wait for results. GetLastError can be called to retrieve the return code if clients want one.
public GetLastError ( ) : Document
리턴 Document

GetLastErrorAndFSync() 공개 메소드

Retrieves the last error and forces the database to fsync all files before returning.
Server version 1.3+
public GetLastErrorAndFSync ( ) : Document
리턴 Document

GetPreviousError() 공개 메소드

Call after sending a bulk operation to the database.
public GetPreviousError ( ) : Document
리턴 Document

Logout() 공개 메소드

public Logout ( ) : void
리턴 void

ResetError() 공개 메소드

Resets last error. This is good to call before a bulk operation.
public ResetError ( ) : void
리턴 void

SendCommand() 공개 메소드

public SendCommand ( Document cmd ) : Document
cmd Document
리턴 Document

SendCommand() 공개 메소드

public SendCommand ( string command ) : Document
command string
리턴 Document

this() 공개 메소드

public this ( String name ) : IMongoCollection
name String
리턴 IMongoCollection