[This is preliminary documentation and is subject to change.]
The Collection type exposes the following members.Constructors
| Name | Description | |
|---|---|---|
| Collection | Initializes a new instance of the Collection class |
Methods
| Name | Description | |
|---|---|---|
| Count |
Performs server-side count over cursor
| |
| Delete |
Deletes documents from the server. Inspect CRUDResult for write errors and docs affected/matched
| |
| DeleteOne |
Deletes 1 document from the server. Inspect CRUDResult for write errors and docs affected/matched
| |
| Destructor | (Overrides DisposableObject Destructor .) | |
| Dispose |
Deterministically disposes object. DO NOT OVERRIDE this method, override Destructor() instead
(Inherited from DisposableObject.) | |
| Drop |
Drops the collection from the server with all of its data and disposes the Collection object
| |
| EnsureObjectNotDisposed |
Checks to see whether object dispose started or has already been disposed and throws an exception if Dispose() was called
(Inherited from DisposableObject.) | |
Determines whether the specified object is equal to the current object. (Inherited from | ||
| Finalize | (Inherited from DisposableObject.) | |
| Find |
Finds all documents that match the supplied query, optionally skipping some.
Fetches only fetchBy at once, then lazily fetches via cursor
| |
| FindAndFetchAll |
Finds all documents that match the supplied query, optionally skipping some.
Fetches and returns all documents as a list. Be careful not to fetch too many
| |
| FindOne |
Finds a document that satisfied query or null
| |
Serves as the default hash function. (Inherited from | ||
Gets the (Inherited from | ||
| Insert |
Inserts documents on the server. Inspect CRUDResult for write errors and docs affected/matched
| |
Creates a shallow copy of the current (Inherited from | ||
| Save |
Updates or inserts 1 document on the server. Inspect CRUDResult for write errors and docs affected/matched
| |
Returns a string that represents the current object. (Inherited from | ||
| Update |
Updates documents on the server. Inspect CRUDResult for write errors and docs affected/matched
|
Extension Methods
Fields
| Name | Description | |
|---|---|---|
| m_FullNameCStringBuffer |
Properties
| Name | Description | |
|---|---|---|
| Database | ||
| Disposed |
Indicates whether this object was already disposed - the Dispose() has finished
(Inherited from DisposableObject.) | |
| DisposeStarted |
Indicates whether this object Dispose() has been called and dispose started but not finished yet
(Inherited from DisposableObject.) | |
| FullName |
Returns full name of this collection: database.collection
| |
| Name | ||
| Server |
See Also