Skip to content

Commit 1513211

Browse files
committed
fix(iQueryableExtensions): use TypeHelper
better type conversion for Guids
1 parent cbe3178 commit 1513211

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/JsonApiDotNetCore/Extensions/IQueryableExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public static IQueryable<TSource> Filter<TSource>(this IQueryable<TSource> sourc
7878
{
7979
// convert the incoming value to the target value type
8080
// "1" -> 1
81-
var convertedValue = Convert.ChangeType(filterQuery.PropertyValue, property.PropertyType);
81+
var convertedValue = TypeHelper.ConvertType(filterQuery.PropertyValue, property.PropertyType);
8282
// {model}
8383
var parameter = Expression.Parameter(concreteType, "model");
8484
// {model.Id}

0 commit comments

Comments
 (0)