2 writes to PropertyName
Microsoft.AspNetCore.Components.QuickGrid (2)
Columns\GridSort.cs (2)
121new SortedProperty { PropertyName = ToPropertyName(_firstExpression.Item1), Direction = (_firstExpression.Item2 ^ ascending) ? SortDirection.Descending : SortDirection.Ascending } 128result.Add(new SortedProperty { PropertyName = ToPropertyName(thenLambda), Direction = (thenAscending ^ ascending) ? SortDirection.Descending : SortDirection.Ascending });
8 references to PropertyName
Microsoft.AspNetCore.Components.QuickGrid.Tests (8)
GridSortTest.cs (8)
39Assert.Equal("Name", propertyList.First().PropertyName); 55Assert.Equal("NullableDate", propertyList.First().PropertyName); 71Assert.Equal("NullableInt", propertyList.First().PropertyName); 87Assert.Equal("Child.ChildName", propertyList.First().PropertyName); 103Assert.Equal("Child.ChildNullableDate", propertyList.First().PropertyName); 119Assert.Equal("NullableDate", propertyList.First().PropertyName); 139Assert.Equal("Name", firstProperty.PropertyName); 143Assert.Equal("NullableDate", secondProperty.PropertyName);