I use database first to generate the class, "operator" is preceded by
@.
public string @operator { get; set; }
You can modify your page code like this.
@(item.@operator)
Best Regards,
YihuiSun
.NET forums are moving to a new home on Microsoft Q&A, we encourage you to go to Microsoft Q&A for .NET for posting new questions and get involved today.
Contributor
2700 Points
777 Posts
Re: Identifier expected; 'operator' is a keyword
May 27, 2020 10:06 AM|YihuiSun|LINK
Hi, denkyira
I use database first to generate the class, "operator" is preceded by @.
public string @operator { get; set; }
You can modify your page code like this.
Best Regards,
YihuiSun