C# Class Mdbc.NormalFileCollection

Inheritance: FileCollection
Exibir arquivo Open project: nightroman/Mdbc

Public Methods

Method Description
Save ( BsonDocument document, WriteConcern writeConcern, bool needResult ) : MongoDB.Driver.WriteConcernResult

Protected Methods

Method Description
InsertInternal ( BsonDocument document ) : void
RemoveDocument ( BsonDocument document ) : void
RemoveDocumentAt ( int index ) : void
UpdateDocument ( BsonDocument document, UpdateCompiler>.Func update ) : void

Private Methods

Method Description
NormalFileCollection ( string path, FileFormat format ) : System
Read ( bool newCollection ) : void
ThrowIdExists ( BsonValue id ) : void

Method Details

InsertInternal() protected method

protected InsertInternal ( BsonDocument document ) : void
document BsonDocument
return void

RemoveDocument() protected method

protected RemoveDocument ( BsonDocument document ) : void
document BsonDocument
return void

RemoveDocumentAt() protected method

protected RemoveDocumentAt ( int index ) : void
index int
return void

Save() public method

public Save ( BsonDocument document, WriteConcern writeConcern, bool needResult ) : MongoDB.Driver.WriteConcernResult
document BsonDocument
writeConcern WriteConcern
needResult bool
return MongoDB.Driver.WriteConcernResult

UpdateDocument() protected method

protected UpdateDocument ( BsonDocument document, UpdateCompiler>.Func update ) : void
document BsonDocument
update UpdateCompiler>.Func
return void