Reflection is the programmatic inspection of code metadata, members, and structure at runtime. In a validation scenario, it can inspect an entity or DTO type and check whether a requested sort column matches an available property. section 6.1.3
Validating a sort column
A SortColumnValidatorAttribute accepts an EntityType value, reads the supplied column name, and calls EntityType.GetProperties().Any(p => p.Name == strValue). The controller applies it with [SortColumnValidator(typeof(BoardGameDTO))], allowing valid DTO properties while avoiding direct exposure of sensitive entity properties such as password hashes. section 6.1.3












