Fauna v10 .NET/C# Driver 1.0.0
 
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Properties | List of all members
Fauna.QueryVal Class Referencesealed

Represents a generic value holder for FQL queries. This class allows embedding values of various types into the query, with support for primitives, POCOs, and other types. More...

Inheritance diagram for Fauna.QueryVal:
Fauna.Query Fauna.IQueryFragment Fauna.IQueryFragment

Public Member Functions

 QueryVal (object? v)
 Initializes a new instance of the QueryVal class with the specified value.
 
override void Serialize (MappingContext ctx, Utf8FaunaWriter writer)
 Serializes the query value.
 
override bool Equals (Query? o)
 Determines whether the specified QueryVal is equal to the current QueryVal.
 
override bool Equals (object? o)
 Determines whether the specified object is equal to the current QueryVal.
 
override int GetHashCode ()
 The default hash function.
 
override string ToString ()
 Returns a string that represents the current QueryVal.
 
- Public Member Functions inherited from Fauna.Query
void Serialize (MappingContext ctx, Utf8FaunaWriter writer)
 Serializes the query into the provided stream.
 
override int GetHashCode ()
 Returns a hash code for the current query.
 
override bool Equals (object? otherObject)
 Determines whether the specified object is equal to the current query.
 
bool Equals (Query? otherQuery)
 Determines whether the specified Query is equal to the current query.
 

Static Public Member Functions

static bool operator== (QueryVal left, QueryVal right)
 Determines whether two specified instances of QueryVal are equal.
 
static bool operator!= (QueryVal left, QueryVal right)
 Determines whether two specified instances of QueryVal are not equal.
 
- Static Public Member Functions inherited from Fauna.Query
static Query FQL (ref QueryStringHandler handler)
 Constructs an FQL query using the specified QueryStringHandler.
 

Properties

object? Unwrap [get]
 Gets the value of the specified type represented in the query.
 

Detailed Description

Represents a generic value holder for FQL queries. This class allows embedding values of various types into the query, with support for primitives, POCOs, and other types.

Definition at line 9 of file QueryVal.cs.

Constructor & Destructor Documentation

◆ QueryVal()

Fauna.QueryVal.QueryVal ( object?  v)

Initializes a new instance of the QueryVal class with the specified value.

Parameters
vThe value of the specified type to be represented in the query.

Definition at line 20 of file QueryVal.cs.

Member Function Documentation

◆ Equals() [1/2]

override bool Fauna.QueryVal.Equals ( object?  o)

Determines whether the specified object is equal to the current QueryVal.

Parameters
oThe object to compare with the current QueryVal.
Returns
true if the specified object is equal to the current QueryVal; otherwise, false.

Definition at line 52 of file QueryVal.cs.

◆ Equals() [2/2]

override bool Fauna.QueryVal.Equals ( Query o)

Determines whether the specified QueryVal is equal to the current QueryVal.

Parameters
oThe QueryVal to compare with the current QueryVal.
Returns
true if the specified QueryVal is equal to the current QueryVal; otherwise, false.

◆ GetHashCode()

override int Fauna.QueryVal.GetHashCode ( )

The default hash function.

Returns
A hash code for the current QueryVal.

Definition at line 66 of file QueryVal.cs.

◆ operator!=()

static bool Fauna.QueryVal.operator!= ( QueryVal  left,
QueryVal  right 
)
static

Determines whether two specified instances of QueryVal are not equal.

Parameters
leftThe first QueryVal to compare.
rightThe second QueryVal to compare.
Returns
true if left and right are not equal; otherwise, false.

Definition at line 111 of file QueryVal.cs.

◆ operator==()

static bool Fauna.QueryVal.operator== ( QueryVal  left,
QueryVal  right 
)
static

Determines whether two specified instances of QueryVal are equal.

Parameters
leftThe first QueryVal to compare.
rightThe second QueryVal to compare.
Returns
true if left and right are equal; otherwise, false.

Definition at line 90 of file QueryVal.cs.

◆ Serialize()

override void Fauna.QueryVal.Serialize ( MappingContext  ctx,
Utf8FaunaWriter  writer 
)

Serializes the query value.

Parameters
ctxThe serialization context.
writerThe writer to serialize the query value to.

Implements Fauna.IQueryFragment.

Definition at line 31 of file QueryVal.cs.

◆ ToString()

override string Fauna.QueryVal.ToString ( )

Returns a string that represents the current QueryVal.

Returns
A string that represents the current QueryVal.

Property Documentation

◆ Unwrap

object? Fauna.QueryVal.Unwrap
get

Gets the value of the specified type represented in the query.

Definition at line 14 of file QueryVal.cs.


The documentation for this class was generated from the following file: