We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cbe3178 commit 1513211Copy full SHA for 1513211
src/JsonApiDotNetCore/Extensions/IQueryableExtensions.cs
@@ -78,7 +78,7 @@ public static IQueryable<TSource> Filter<TSource>(this IQueryable<TSource> sourc
78
{
79
// convert the incoming value to the target value type
80
// "1" -> 1
81
- var convertedValue = Convert.ChangeType(filterQuery.PropertyValue, property.PropertyType);
+ var convertedValue = TypeHelper.ConvertType(filterQuery.PropertyValue, property.PropertyType);
82
// {model}
83
var parameter = Expression.Parameter(concreteType, "model");
84
// {model.Id}
0 commit comments