C# Class Mdbc.MongoCollectionHost

Inheritance: ICollectionHost
显示文件 Open project: nightroman/Mdbc

Public Methods

Method Description
Count ( ) : long
Count ( IMongoQuery query ) : long
Count ( IMongoQuery query, int skip, int first ) : long
Distinct ( string key, IMongoQuery query ) : IEnumerable
FindAndModifyAs ( Type documentType, IMongoQuery query, IMongoSortBy sortBy, IMongoUpdate update, IMongoFields fields, bool returnNew, bool upsert, UpdateResult &result ) : object
FindAndRemoveAs ( Type documentType, IMongoQuery query, IMongoSortBy sortBy ) : object
FindAs ( Type documentType, IMongoQuery query, QueryFlags modes, IMongoSortBy sortBy, int skip, int first, IMongoFields fields ) : IEnumerable
Insert ( BsonDocument document, WriteConcern writeConcern, bool needResult ) : WriteConcernResult
MongoCollectionHost ( MongoCollection collection ) : System
Remove ( IMongoQuery query, RemoveFlags flags, WriteConcern writeConcern, bool needResult ) : WriteConcernResult
Save ( BsonDocument document, WriteConcern writeConcern, bool needResult ) : WriteConcernResult
Update ( IMongoQuery query, IMongoUpdate update, UpdateFlags flags, WriteConcern writeConcern, bool needResult ) : WriteConcernResult

Method Details

Count() public method

public Count ( ) : long
return long

Count() public method

public Count ( IMongoQuery query ) : long
query IMongoQuery
return long

Count() public method

public Count ( IMongoQuery query, int skip, int first ) : long
query IMongoQuery
skip int
first int
return long

Distinct() public method

public Distinct ( string key, IMongoQuery query ) : IEnumerable
key string
query IMongoQuery
return IEnumerable

FindAndModifyAs() public method

public FindAndModifyAs ( Type documentType, IMongoQuery query, IMongoSortBy sortBy, IMongoUpdate update, IMongoFields fields, bool returnNew, bool upsert, UpdateResult &result ) : object
documentType System.Type
query IMongoQuery
sortBy IMongoSortBy
update IMongoUpdate
fields IMongoFields
returnNew bool
upsert bool
result UpdateResult
return object

FindAndRemoveAs() public method

public FindAndRemoveAs ( Type documentType, IMongoQuery query, IMongoSortBy sortBy ) : object
documentType Type
query IMongoQuery
sortBy IMongoSortBy
return object

FindAs() public method

public FindAs ( Type documentType, IMongoQuery query, QueryFlags modes, IMongoSortBy sortBy, int skip, int first, IMongoFields fields ) : IEnumerable
documentType Type
query IMongoQuery
modes QueryFlags
sortBy IMongoSortBy
skip int
first int
fields IMongoFields
return IEnumerable

Insert() public method

public Insert ( BsonDocument document, WriteConcern writeConcern, bool needResult ) : WriteConcernResult
document BsonDocument
writeConcern WriteConcern
needResult bool
return WriteConcernResult

MongoCollectionHost() public method

public MongoCollectionHost ( MongoCollection collection ) : System
collection MongoCollection
return System

Remove() public method

public Remove ( IMongoQuery query, RemoveFlags flags, WriteConcern writeConcern, bool needResult ) : WriteConcernResult
query IMongoQuery
flags RemoveFlags
writeConcern WriteConcern
needResult bool
return WriteConcernResult

Save() public method

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

Update() public method

public Update ( IMongoQuery query, IMongoUpdate update, UpdateFlags flags, WriteConcern writeConcern, bool needResult ) : WriteConcernResult
query IMongoQuery
update IMongoUpdate
flags UpdateFlags
writeConcern WriteConcern
needResult bool
return WriteConcernResult