Bson |
public sealed class BsonExpression
The BsonExpression type exposes the following members.
| Name | Description | |
|---|---|---|
| Fields | Fill this hashset with all fields used in root level of document (be used to partial deserialize) - "$" means all fields | |
| Functions | Get all registered functions for BsonExpressions | |
| IsImmutable | If true, this expression do not change if same document/paramter are passed (only few methods change - like NOW() - or parameters) | |
| IsScalar | Indicate if this expressions returns a single value or IEnumerable value | |
| Methods | Get all registered methods for BsonExpressions | |
| Parameters | Get/Set parameter values that will be used on expression execution | |
| Source | Get formatted expression | |
| Type | Indicate expression type |
| Name | Description | |
|---|---|---|
| Create(String) | Parse string and create new instance of BsonExpression - can be cached | |
| Create(String, BsonDocument) | Parse string and create new instance of BsonExpression - can be cached | |
| Create(String, BsonValue) | Parse string and create new instance of BsonExpression - can be cached | |
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) | |
| Execute(Collation) | Execute expression with an empty document (used only for resolve math/functions). | |
| Execute(BsonDocument, Collation) | Execute expression and returns IEnumerable values | |
| Execute(IEnumerableBsonDocument, Collation) | Execute expression and returns IEnumerable values | |
| ExecuteScalar(Collation) | Execute scalar expression with an blank document and empty source (used only for resolve math/functions). | |
| ExecuteScalar(BsonDocument, Collation) | Execute scalar expression over single document and return a single value (or BsonNull when empty). Throws exception if expression are not scalar expression | |
| ExecuteScalar(IEnumerableBsonDocument, Collation) | Execute scalar expression over multiple documents and return a single value (or BsonNull when empty). Throws exception if expression are not scalar expression | |
| GetHashCode | Serves as the default hash function. (Inherited from Object) | |
| GetType | Gets the Type of the current instance. (Inherited from Object) | |
| ToString | (Overrides ObjectToString) |
| Name | Description | |
|---|---|---|
| (BsonExpression to String) | Implicit string converter | |
| (String to BsonExpression) | Implicit string converter |
| Name | Description | |
|---|---|---|
| MethodInvoke |
Calls the object method by name.
(Defined by ObjectEx) | |
| PropertyGet |
Gets the value of the object property by name.
(Defined by ObjectEx) | |
| PropertyGetT |
Gets the value of the object property by name.
(Defined by ObjectEx) | |
| PropertySet |
Sets the value of the object property by name.
(Defined by ObjectEx) |