메소드 | 설명 | |
---|---|---|
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 |
||
GetById ( String key ) : Object |
Returns document by it's key. If document doesn't exists - default(TDocument) will be returned.
|
|
MongodbCollection ( MongodbDatabase database, |
||
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 |
public MongodbCollection ( MongodbDatabase database, |
||
database | MongodbDatabase | |
documentType | ||
collectionName | String | |
리턴 | System |
public Replace ( String key, object document ) : bool | ||
key | String | |
document | object | |
리턴 | bool |