<分区>
例如,如果你有
public class user
{
public string x { get; set; }
[ScaffoldColumn(false)]
public string y { get; set; }
}
无论如何,当我查看实体以确定 y 是否确实将脚手架列设置为 false 时?我试过像这样以编程方式循环(伪代码):
foreach(var prop in user.GetProperties())
{
var attributes = prop.Attributes;
}
但似乎没有属性属性或指示属性(在本例中为 y)是否为脚手架列。