Skip to content

Commit

Permalink
WIP: 46 Error(s)
Browse files Browse the repository at this point in the history
TypeDescriptor is not part of .NET Core. It seems PropertyInfo would be sufficient here. Refer to: http://stackoverflow.com/questions/1402239
  • Loading branch information
tugberkugurlu committed Jan 5, 2016
1 parent d3975aa commit c560f23
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Neo4jClient/Cypher/CypherFluentQuery.cs
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,10 @@ public ICypherFluentQuery WithParams(object parameters)
{
if (parameters == null) return this;
var keyValuePairs = new Dictionary<string, object>();
foreach (PropertyDescriptor propertyDescriptor in TypeDescriptor.GetProperties(parameters))
foreach (var propertyInfo in parameters.GetType().GetProperties())
{
var key = propertyDescriptor.Name;
var value = propertyDescriptor.GetValue(parameters);
var key = propertyInfo.Name;
var value = propertyInfo.GetValue(parameters);
keyValuePairs.Add(key, value);
}
return WithParams(keyValuePairs);
Expand Down

0 comments on commit c560f23

Please sign in to comment.