Represents a literal part of an FQL query. This class is used for embedding raw string values directly into the query structure. More...
Public Member Functions | |
| QueryLiteral (string v) | |
| Initializes a new instance of the QueryLiteral class with the specified value. | |
| override string | ToString () |
| Returns a string that represents the current QueryLiteral. | |
| void | Serialize (MappingContext ctx, Utf8FaunaWriter writer) |
| Serializes the query literal. | |
| override bool | Equals (object? other) |
| Determines whether the specified object is equal to the current QueryLiteral. | |
| override int | GetHashCode () |
| The default hash function. | |
Static Public Member Functions | |
| static bool | operator== (QueryLiteral left, QueryLiteral right) |
| Determines whether two specified instances of QueryLiteral are equal. | |
| static bool | operator!= (QueryLiteral left, QueryLiteral right) |
| Determines whether two specified instances of QueryLiteral are not equal. | |
Properties | |
| string | Unwrap [get] |
| Gets the string value of the query literal. | |
Represents a literal part of an FQL query. This class is used for embedding raw string values directly into the query structure.
Definition at line 9 of file QueryLiteral.cs.
| Fauna.QueryLiteral.QueryLiteral | ( | string | v | ) |
Initializes a new instance of the QueryLiteral class with the specified value.
| v | The string value to be represented as a query literal. |
| ArgumentNullException | Thrown when the value is null. |
Definition at line 16 of file QueryLiteral.cs.
| override bool Fauna.QueryLiteral.Equals | ( | object? | other | ) |
Determines whether the specified object is equal to the current QueryLiteral.
| other | The object to compare with the current QueryLiteral. |
Definition at line 55 of file QueryLiteral.cs.
| override int Fauna.QueryLiteral.GetHashCode | ( | ) |
The default hash function.
Definition at line 81 of file QueryLiteral.cs.
|
static |
Determines whether two specified instances of QueryLiteral are not equal.
| left | The first QueryLiteral to compare. |
| right | The second QueryLiteral to compare. |
Definition at line 103 of file QueryLiteral.cs.
|
static |
Determines whether two specified instances of QueryLiteral are equal.
| left | The first QueryLiteral to compare. |
| right | The second QueryLiteral to compare. |
Definition at line 92 of file QueryLiteral.cs.
| void Fauna.QueryLiteral.Serialize | ( | MappingContext | ctx, |
| Utf8FaunaWriter | writer | ||
| ) |
Serializes the query literal.
| ctx | The serialization context. |
| writer | The writer to serialize the query literal to. |
Implements Fauna.IQueryFragment.
Definition at line 45 of file QueryLiteral.cs.
| override string Fauna.QueryLiteral.ToString | ( | ) |
Returns a string that represents the current QueryLiteral.
Definition at line 35 of file QueryLiteral.cs.
|
get |
Gets the string value of the query literal.
Definition at line 29 of file QueryLiteral.cs.