Class SimpleGraphStatement
Represents a graph query.
Implements
Inherited Members
Namespace: Cassandra.DataStax.Graph
Assembly: Cassandra.dll
Syntax
public class SimpleGraphStatement : GraphStatement, IGraphStatement
Constructors
SimpleGraphStatement(IDictionary<string, object>, string)
Creates a new instance of SimpleGraphStatement using a query with named parameters.
Declaration
public SimpleGraphStatement(IDictionary<string, object> values, string query)
Parameters
Type | Name | Description |
---|---|---|
IDictionary<string, object> | values | An Dictionary object containing the parameters name and values as key and values. |
string | query | The graph query string. |
Examples
new SimpleGraphStatement(
new Dictionary<string, object>{ { "myName", "mark" } },
"g.V().has('name', myName)")
SimpleGraphStatement(string)
Creates a new instance of SimpleGraphStatement using a query with no parameters.
Declaration
public SimpleGraphStatement(string query)
Parameters
Type | Name | Description |
---|---|---|
string | query | The graph query string. |
SimpleGraphStatement(string, object)
Creates a new instance of SimpleGraphStatement using a query with named parameters.
Declaration
public SimpleGraphStatement(string query, object values)
Parameters
Type | Name | Description |
---|---|---|
string | query | The graph query string. |
object | values | An anonymous object containing the parameters as properties. |
Examples
new SimpleGraphStatement("g.V().has('name', myName)", new { myName = "mark"})
Properties
Query
The underlying query string
Declaration
public string Query { get; }
Property Value
Type | Description |
---|---|
string |
Values
Values object used for parameter substitution in the query string
Declaration
public object Values { get; }
Property Value
Type | Description |
---|---|
object |
ValuesDictionary
Values dictionary used for parameter substitution in the query string
Declaration
public IDictionary<string, object> ValuesDictionary { get; }
Property Value
Type | Description |
---|---|
IDictionary<string, object> |