Skip to content

Commit 5cc92ee

Browse files
BaronAdamJamess-Lucass
authored andcommitted
revert json property change (#75)
1 parent c1cc6c0 commit 5cc92ee

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Extensions/QueryableExtension.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public static (IQueryable, int?) Apply<T>(this IQueryable<T> queryable, Query qu
4848
var operand = opts[1];
4949
var value = opts[2].Replace("'", "\"");
5050

51-
string? propertyName = typeof(T).GetProperties().FirstOrDefault(x => x.Name == property)?.Name;
51+
string? propertyName = typeof(T).GetProperties().FirstOrDefault(x => x.GetCustomAttribute<JsonPropertyNameAttribute>()?.Name == property)?.Name;
5252

5353
if (!string.IsNullOrEmpty(propertyName))
5454
{

0 commit comments

Comments
 (0)