Ejemplo n.º 1
0
 public static HttpStatusCode SetPropertyOnRelationship(string dbUrl, long relationshipId, string propertyName, object value)
 {
     return
         (HttpRest.Put(
              string.Concat(Connection.GetServiceRoot(dbUrl).Relationship, "/", relationshipId.ToString(), "/properties/", propertyName),
              JToken.FromObject(value).ToString()));
 }
Ejemplo n.º 2
0
 public static HttpStatusCode SetPropertyOnNode(string dbUrl, long nodeId, string propertyName, object value)
 {
     return(HttpRest.Put(string.Concat(Connection.GetServiceRoot(dbUrl).Node, "/", nodeId.ToString(), "/properties/", propertyName),
                         JToken.FromObject(value).ToString(Formatting.None, new IsoDateTimeConverter())));
 }
Ejemplo n.º 3
0
 public static HttpStatusCode SetPropertiesOnNode(string dbUrl, long nodeId, string jsonProperties)
 {
     return(HttpRest.Put(string.Concat(Connection.GetServiceRoot(dbUrl).Node, "/", nodeId.ToString(), "/properties"), jsonProperties));
 }
Ejemplo n.º 4
0
 public static HttpStatusCode SetPropertiesOnRelationship(string dbUrl, long relationshipId, string jsonProperties)
 {
     return(HttpRest.Put(string.Concat(Connection.GetServiceRoot(dbUrl).Relationship, "/", relationshipId.ToString(), "/properties"), jsonProperties));
 }