C# Class MongoDB.Collection

Inheritance: System.Dynamic.DynamicObject
Afficher le fichier Open project: dannycoates/mongo-clr4-driver Class Usage Examples

Méthodes publiques

Méthode Description
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

Private Methods

Méthode Description
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

Method Details

BulkInsert() public méthode

public BulkInsert ( ) : void
Résultat void

Collection() public méthode

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) ///
Résultat System

Count() public méthode

public Count ( ) : int
Résultat int

CreateIndex() public méthode

public CreateIndex ( MongoDB.Index index, bool unique = false ) : string
index MongoDB.Index
unique bool
Résultat string

DataSize() public méthode

public DataSize ( ) : long
Résultat long

Distinct() public méthode

public Distinct ( string key ) : IList
key string
Résultat IList

Drop() public méthode

Drop this collection from its Database
public Drop ( ) : void
Résultat void

DropIndex() public méthode

public DropIndex ( MongoDB.Index index ) : void
index MongoDB.Index
Résultat void

DropIndex() public méthode

public DropIndex ( string name ) : void
name string
Résultat void

FindOne() public méthode

public FindOne ( object>.IDictionary obj = null ) : Doc
obj object>.IDictionary
Résultat Doc

GetIndexes() public méthode

public GetIndexes ( ) : Cursor
Résultat Cursor

Group() public méthode

public Group ( ) : Doc
Résultat Doc

Insert() public méthode

public Insert ( object>.IDictionary obj, bool safe = false ) : object
obj object>.IDictionary
safe bool
Résultat object

MapReduce() public méthode

public MapReduce ( MapReduce mr ) : Doc
mr MapReduce
Résultat Doc

Remove() public méthode

public Remove ( object>.IDictionary spec, bool safe = false ) : void
spec object>.IDictionary
safe bool
Résultat void

Save() public méthode

public Save ( object>.IDictionary obj, bool safe = false ) : object
obj object>.IDictionary
safe bool
Résultat object

Stats() public méthode

public Stats ( ) : Doc
Résultat Doc

StorageSize() public méthode

public StorageSize ( ) : long
Résultat long

TotalIndexSize() public méthode

public TotalIndexSize ( ) : long
Résultat long

TryGetMember() public méthode

public TryGetMember ( GetMemberBinder binder, object &result ) : bool
binder System.Dynamic.GetMemberBinder
result object
Résultat bool

Update() public méthode

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
Résultat void