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 c1cc6c0 commit 5cc92eeCopy full SHA for 5cc92ee
1 file changed
src/Extensions/QueryableExtension.cs
@@ -48,7 +48,7 @@ public static (IQueryable, int?) Apply<T>(this IQueryable<T> queryable, Query qu
48
var operand = opts[1];
49
var value = opts[2].Replace("'", "\"");
50
51
- string? propertyName = typeof(T).GetProperties().FirstOrDefault(x => x.Name == property)?.Name;
+ string? propertyName = typeof(T).GetProperties().FirstOrDefault(x => x.GetCustomAttribute<JsonPropertyNameAttribute>()?.Name == property)?.Name;
52
53
if (!string.IsNullOrEmpty(propertyName))
54
{
0 commit comments