[英]Is it possible to exclude parts of your model using Html.EditorFor?
Should be pretty simple question here. 这里的问题应该很简单。 I have
我有
@Html.EditorFor(model=>model.Training)
I dont want to show some parts. 我不想显示一些部分。 Is there a way for me to exclude some from showing?
我有办法排除某些内容吗?
[ScaffoldColumn(false)]
public string SomeProperty {get; set;}
That should do the trick! 这应该够了吧!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.