Sub-expression cannot be used in an argument to nameof.
Working with a ASP.Net Core webapp using NET7
I have a model
I also have a ViewModel
in my View I'm trying to get the property name from TblStudent using this
however, I'm having
Sub-expression cannot be used in an argument to nameof.
error
Anyone know how to display just the property name?2 Replies