C# 클래스 MongoDB.Collection

상속: System.Dynamic.DynamicObject
파일 보기 프로젝트 열기: dannycoates/mongo-clr4-driver 1 사용 예제들

공개 메소드들

메소드 설명
BulkInsert ( ) : void
Collection ( string name, Database db, object>.IDictionary options = null ) : System

Create a new Collection object. If options are included, sends a command to the database, otherwise the reference is 'lazy'

Count ( ) : int
CreateIndex ( MongoDB.Index index, bool unique = false ) : string
DataSize ( ) : long
Distinct ( string key ) : IList
Drop ( ) : void

Drop this collection from its Database

DropIndex ( MongoDB.Index index ) : void
DropIndex ( string name ) : void
FindOne ( object>.IDictionary obj = null ) : Doc
GetIndexes ( ) : Cursor
Group ( ) : Doc
Insert ( object>.IDictionary obj, bool safe = false ) : object
MapReduce ( MapReduce mr ) : Doc
Remove ( object>.IDictionary spec, bool safe = false ) : void
Save ( object>.IDictionary obj, bool safe = false ) : object
Stats ( ) : Doc
StorageSize ( ) : long
TotalIndexSize ( ) : long
TryGetMember ( GetMemberBinder binder, object &result ) : bool
Update ( object>.IDictionary spec, object>.IDictionary doc, bool upsert = false, bool multi = false, bool safe = false ) : void

비공개 메소드들

메소드 설명
Create ( object>.IDictionary options ) : void
EnsureIndex ( MongoDB.Index index ) : string
Find ( object>.IDictionary query = null, int limit, IEnumerable fields = null, int skip ) : Cursor
IndexName ( MongoDB.Index index ) : string
NameOk ( string name ) : bool

메소드 상세

BulkInsert() 공개 메소드

public BulkInsert ( ) : void
리턴 void

Collection() 공개 메소드

Create a new Collection object. If options are included, sends a command to the database, otherwise the reference is 'lazy'
public Collection ( string name, Database db, object>.IDictionary options = null ) : System
name string
db Database
options object>.IDictionary /// valid options are: /// size - initial size (bytes), also max if capped /// capped - true if capped /// max - max object count if capped (optional) ///
리턴 System

Count() 공개 메소드

public Count ( ) : int
리턴 int

CreateIndex() 공개 메소드

public CreateIndex ( MongoDB.Index index, bool unique = false ) : string
index MongoDB.Index
unique bool
리턴 string

DataSize() 공개 메소드

public DataSize ( ) : long
리턴 long

Distinct() 공개 메소드

public Distinct ( string key ) : IList
key string
리턴 IList

Drop() 공개 메소드

Drop this collection from its Database
public Drop ( ) : void
리턴 void

DropIndex() 공개 메소드

public DropIndex ( MongoDB.Index index ) : void
index MongoDB.Index
리턴 void

DropIndex() 공개 메소드

public DropIndex ( string name ) : void
name string
리턴 void

FindOne() 공개 메소드

public FindOne ( object>.IDictionary obj = null ) : Doc
obj object>.IDictionary
리턴 Doc

GetIndexes() 공개 메소드

public GetIndexes ( ) : Cursor
리턴 Cursor

Group() 공개 메소드

public Group ( ) : Doc
리턴 Doc

Insert() 공개 메소드

public Insert ( object>.IDictionary obj, bool safe = false ) : object
obj object>.IDictionary
safe bool
리턴 object

MapReduce() 공개 메소드

public MapReduce ( MapReduce mr ) : Doc
mr MapReduce
리턴 Doc

Remove() 공개 메소드

public Remove ( object>.IDictionary spec, bool safe = false ) : void
spec object>.IDictionary
safe bool
리턴 void

Save() 공개 메소드

public Save ( object>.IDictionary obj, bool safe = false ) : object
obj object>.IDictionary
safe bool
리턴 object

Stats() 공개 메소드

public Stats ( ) : Doc
리턴 Doc

StorageSize() 공개 메소드

public StorageSize ( ) : long
리턴 long

TotalIndexSize() 공개 메소드

public TotalIndexSize ( ) : long
리턴 long

TryGetMember() 공개 메소드

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

Update() 공개 메소드

public Update ( object>.IDictionary spec, object>.IDictionary doc, bool upsert = false, bool multi = false, bool safe = false ) : void
spec object>.IDictionary
doc object>.IDictionary
upsert bool
multi bool
safe bool
리턴 void