简体   繁体   中英

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!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM