Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for ScaffoldColumn Attribute #89

Open
davinic opened this issue Mar 27, 2013 · 2 comments
Open

Support for ScaffoldColumn Attribute #89

davinic opened this issue Mar 27, 2013 · 2 comments

Comments

@davinic
Copy link

davinic commented Mar 27, 2013

Bootstrap default templates ignore ScaffoldColumn() annotations. In my project I've corrected this by updating the VisibleProperties() extension methods with an additional where clause:

.Where(info => info.GetCustomAttribute<System.ComponentModel.DataAnnotations.ScaffoldColumnAttribute>(false)==null || info.GetCustomAttribute<System.ComponentModel.DataAnnotations.ScaffoldColumnAttribute>(false).Scaffold)
@serra
Copy link
Contributor

serra commented Mar 28, 2013

Good point. The net data annotation [Display(AutoGenerate=false)] is not supported by the bootstrap shared views yet (#83), but should be. I guess [Display(AutoGenerate=false)] should be checked too when generating the template, in addition to the check you mention above.

@serra
Copy link
Contributor

serra commented Mar 28, 2013

Please note that I have pull request #29 open with significant changes to the templates; consider adding your changes on top of that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants