Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一些“c”类所需的列,并使用流畅的 API 对其进行设置:
Property(c => c.Name).IsRequired()
如何在不使用数据注释的情况下找出我的代码中需要“c.Name”?
如果您只是说如何在没有流利的情况下检查属性,您可以尝试
@Model.Name.IsRequired()