开发者

Is it possible to exclude parts of your model using Html.EditorFor?

开发者 https://www.devze.com 2023-02-16 20:11 出处:网络
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?[ScaffoldC

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!

0

精彩评论

暂无评论...
验证码 换一张
取 消