© 2026 Hedgehog Software, LLC
public class TblStudent { [Display(Name = "ID")] public string? StuID { get; set; } [Display(Name = "Full Name")] public string? StuFullName { get; set; } }
public class StudentIndexViewModel { public IEnumerable<TblStudent> StuTable { get; set; } = new List<TblStudent>(); {
@(nameof(Model.StuTable.FirstOrDefault().StuFullName))
Sub-expression cannot be used in an argument to nameof.