Class SimpleGraphStatement
Represents a graph query.
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Dse.Graph
Assembly: Dse.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 |
---|---|---|
System.Collections.Generic.IDictionary<System.String, System.Object> | values | An Dictionary object containing the parameters name and values as key and values. |
System.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 |
---|---|---|
System.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 |
---|---|---|
System.String | query | The graph query string. |
System.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 |
---|---|
System.String |
Values
Values object used for parameter substitution in the query string
Declaration
public object Values { get; }
Property Value
Type | Description |
---|---|
System.Object |
ValuesDictionary
Values dictionary used for parameter substitution in the query string
Declaration
public IDictionary<string, object> ValuesDictionary { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IDictionary<System.String, System.Object> |