@@ -13,7 +13,7 @@
-
+
@@ -21,7 +21,7 @@
@code {
- record Person(int PersonId, string firstName, string lastName, DateOnly BirthDate);
+ record Person(int PersonId, string FirstName, string LastName, DateOnly BirthDate);
PaginationState pagination = new PaginationState { ItemsPerPage = 10 };
string firstNameFilter;
QuickGrid
quickGridRef;
@@ -29,7 +29,7 @@
int ComputeAge(DateOnly birthDate)
=> DateTime.Now.Year - birthDate.Year - (birthDate.DayOfYear < DateTime.Now.DayOfYear ? 0 : 1);
- string HighlightJulie(Person person) => person.firstName == "Julie" ? "highlight" : null;
+ string HighlightJulie(Person person) => person.FirstName == "Julie" ? "highlight" : null;
IQueryable FilteredPeople
{
@@ -39,7 +39,7 @@
if (!string.IsNullOrEmpty(firstNameFilter))
{
- result = result.Where(p => p.firstName.Contains(firstNameFilter, StringComparison.CurrentCultureIgnoreCase));
+ result = result.Where(p => p.FirstName.Contains(firstNameFilter, StringComparison.CurrentCultureIgnoreCase));
}
return result;