C# 클래스 Uniform.Mongodb.MongodbCollection

상속: IDocumentCollection
파일 보기 프로젝트 열기: paralect/uniform

공개 메소드들

메소드 설명
Delete ( String key ) : void

Deletes document with specified key. If document with such key doesn't exists - no changes to collection will be made.

DropAndPrepare ( ) : void
GetById ( IEnumerable keys ) : IEnumerable
GetById ( String key ) : Object

Returns document by it's key. If document doesn't exists - default(TDocument) will be returned.

MongodbCollection ( MongodbDatabase database, Type documentType, String collectionName ) : System
Replace ( String key, object document ) : bool
Save ( String key, Object document ) : bool

Saves document to collection using specified key. If document with such key already exists, it will be silently overwritten.

Save ( object obj ) : bool
Save ( IEnumerable docs ) : void

메소드 상세

Delete() 공개 메소드

Deletes document with specified key. If document with such key doesn't exists - no changes to collection will be made.
public Delete ( String key ) : void
key String
리턴 void

DropAndPrepare() 공개 메소드

public DropAndPrepare ( ) : void
리턴 void

GetById() 공개 메소드

public GetById ( IEnumerable keys ) : IEnumerable
keys IEnumerable
리턴 IEnumerable

GetById() 공개 메소드

Returns document by it's key. If document doesn't exists - default(TDocument) will be returned.
public GetById ( String key ) : Object
key String
리턴 Object

MongodbCollection() 공개 메소드

public MongodbCollection ( MongodbDatabase database, Type documentType, String collectionName ) : System
database MongodbDatabase
documentType System.Type
collectionName String
리턴 System

Replace() 공개 메소드

public Replace ( String key, object document ) : bool
key String
document object
리턴 bool

Save() 공개 메소드

Saves document to collection using specified key. If document with such key already exists, it will be silently overwritten.
public Save ( String key, Object document ) : bool
key String
document Object
리턴 bool

Save() 공개 메소드

public Save ( object obj ) : bool
obj object
리턴 bool

Save() 공개 메소드

public Save ( IEnumerable docs ) : void
docs IEnumerable
리턴 void