public async Task <IHttpActionResult> PostAddProperty(string id, propertyInfo info) { if (info == null) { return(BadRequest()); } DocumentCollection graph = await client.CreateDocumentCollectionIfNotExistsAsync( UriFactory.CreateDatabaseUri("graphdb"), new DocumentCollection { Id = "Persons" }, new RequestOptions { OfferThroughput = 400 }); string grem = $"g.V('{id}').count()"; IDocumentQuery <dynamic> query = client.CreateGremlinQuery <dynamic>(graph, grem); while (query.HasMoreResults) { foreach (dynamic result in await query.ExecuteNextAsync()) { if (result == 0) { return(NotFound()); } } } grem = $"g.V('{id}').property('{info.key}', '{info.value.Replace("'","''")}')"; query = client.CreateGremlinQuery <dynamic>(graph, grem); await query.ExecuteNextAsync(); return(Ok()); }
PopulateProperty(propertyInfo, instance);
return(GetDictionaryPropertyInfo(propertyInfo, types[0].GetTypeInfo(), types[1].GetTypeInfo()));
(Func <object?, TProperty>)CreatePropertyGetter(propertyInfo, propertyInfo.DeclaringType !, typeof(TProperty));
(Equals(propertyInfo, otherPropertyInfo) || (propertyInfo.Name == otherPropertyInfo.Name &&
var(propertyInfo, metadata) = _map[typeof(TEntity)]